Code

Ticket #2145: patch.txt

File patch.txt, 667 bytes (added by alex@…, 7 years ago)

trivial patch

Line 
1Index: django/contrib/admin/views/main.py
2===================================================================
3--- django/contrib/admin/views/main.py  (revision 4528)
4+++ django/contrib/admin/views/main.py  (working copy)
5@@ -573,7 +573,7 @@
6 
7     def get_filters(self, request):
8         filter_specs = []
9-        if self.lookup_opts.admin.list_filter and not self.opts.one_to_one_field:
10+        if self.lookup_opts.admin.list_filter: # and not self.opts.one_to_one_field:
11             filter_fields = [self.lookup_opts.get_field(field_name) \
12                               for field_name in self.lookup_opts.admin.list_filter]
13             for f in filter_fields: