Ticket #2737: none-isnull.patch
File none-isnull.patch, 523 bytes (added by , 18 years ago) |
---|
-
django/db/models/query.py
827 827 # all uses of None as a query value. 828 828 if lookup_type != 'exact': 829 829 raise ValueError, "Cannot use None as a query value" 830 else: 831 lookup_type = 'isnull' 832 value = True 830 833 elif callable(value): 831 834 value = value() 832 835