Django Null Request Filter

This is my request.

count = Attend.objects.filter(date = NULL).count() 

This gives me the input date in the correct format error. I am trying to filter out a date set to null.

What am I doing?

+4
source share
1 answer
 count = Attend.objects.filter(date__isnull = True).count() 
+9
source

All Articles