Three day old installation of
Django version 4.2.4, using settings ‘storefront.settings’
I’m following along with Mosh coding as he is coding.
queryset = Customer.objects.annotate(is_new = True) - fails as advertised.
from django.db.models import Value
change the queryset to this
queryset = Customer.objects.annotate(is_new=Value(True)) - gives a blank screen and NO SQL
Selecting SQL in the Django debug toolbar shows
SQL queries from 0 connections
No SQL queries were recorded during this request.
I’ve looked at this for so long I am going word blind.
Can anyone see what I have done wrong or mis-typed? Or is there a reason for this