Ticket #14467: fix_for_None_values.diff

File fix_for_None_values.diff, 415 bytes (added by oyvind, 14 years ago)

Fix without touching FilterSpec

  • django/contrib/admin/views/main.py

     
    187187                else:
    188188                    lookup_params[key] = True
    189189
     190            if value == 'None':
     191                lookup_params[key] = None
     192
    190193        # Apply lookup parameters from the query string.
    191194        try:
    192195            qs = qs.filter(**lookup_params)
Back to Top