Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/views/admin/main.py
View
2  django/views/admin/main.py
@@ -251,7 +251,7 @@ def change_list(request, app_label, module_name):
lookup_val = request.GET.get(lookup_kwarg, None)
lookup_val2 = request.GET.get(lookup_kwarg2, None)
filter_template.append('<h3>By %s:</h3><ul>\n' % f.verbose_name)
- for k, v in (('All', None), ('Yes', 'True'), ('No', 'False')):
+ for k, v in (('All', None), ('Yes', '1'), ('No', '0')):
filter_template.append('<li%s><a href="%s">%s</a></li>\n' % \
(((lookup_val == v and not lookup_val2) and ' class="selected"' or ''),
get_query_string(params, {lookup_kwarg: v}, [lookup_kwarg2]), k))
Please sign in to comment.
Something went wrong with that request. Please try again.