Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #374 -- Filtering by BooleanField now works in admin with SQLit…

…e. Thanks, davidschein

git-svn-id: http://code.djangoproject.com/svn/django/trunk@804 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6beab20722c5c4171541ebf10530f8f9949aa04e 1 parent d93c68a
Adrian Holovaty authored October 08, 2005

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/views/admin/main.py
2  django/views/admin/main.py
@@ -251,7 +251,7 @@ def change_list(request, app_label, module_name):
251 251
                 lookup_val = request.GET.get(lookup_kwarg, None)
252 252
                 lookup_val2 = request.GET.get(lookup_kwarg2, None)
253 253
                 filter_template.append('<h3>By %s:</h3><ul>\n' % f.verbose_name)
254  
-                for k, v in (('All', None), ('Yes', 'True'), ('No', 'False')):
  254
+                for k, v in (('All', None), ('Yes', '1'), ('No', '0')):
255 255
                     filter_template.append('<li%s><a href="%s">%s</a></li>\n' % \
256 256
                         (((lookup_val == v and not lookup_val2) and ' class="selected"' or ''),
257 257
                         get_query_string(params, {lookup_kwarg: v}, [lookup_kwarg2]), k))

0 notes on commit 6beab20

Please sign in to comment.
Something went wrong with that request. Please try again.