Ticket #2737: isnull.patch

File isnull.patch, 483 bytes (added by wardi-django@…, 9 years ago)

[patch] adds support for my_field=None in filter() and exclude()

  • query.py

     
    707707    joins, where, params = SortedDict(), [], []
    708708
    709709    for kwarg, value in kwarg_items:
     710        if value is None:
     711            value = True
     712            kwark = kwarg + "__isnull"   
    710713        if value is not None:
    711714            path = kwarg.split(LOOKUP_SEPARATOR)
    712715            # Extract the last elements of the kwarg.
Back to Top