Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed typos in admin views wrt list_filter. Refs #16311.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16445 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e3a845de6a31554abe7ca6be247cda5bdd15edf4 1 parent 43503b0
Jannis Leidel authored June 22, 2011

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. 12  django/contrib/admin/views/main.py
12  django/contrib/admin/views/main.py
@@ -91,21 +91,21 @@ def get_filters(self, request, use_distinct=False):
91 91
         filter_specs = []
92 92
         cleaned_params, use_distinct = self.get_lookup_params(use_distinct)
93 93
         if self.list_filter:
94  
-            for list_filer in self.list_filter:
95  
-                if callable(list_filer):
  94
+            for list_filter in self.list_filter:
  95
+                if callable(list_filter):
96 96
                     # This is simply a custom list filter class.
97  
-                    spec = list_filer(request, cleaned_params,
  97
+                    spec = list_filter(request, cleaned_params,
98 98
                         self.model, self.model_admin)
99 99
                 else:
100 100
                     field_path = None
101  
-                    if isinstance(list_filer, (tuple, list)):
  101
+                    if isinstance(list_filter, (tuple, list)):
102 102
                         # This is a custom FieldListFilter class for a given field.
103  
-                        field, field_list_filter_class = list_filer
  103
+                        field, field_list_filter_class = list_filter
104 104
                     else:
105 105
                         # This is simply a field name, so use the default
106 106
                         # FieldListFilter class that has been registered for
107 107
                         # the type of the given field.
108  
-                        field, field_list_filter_class = list_filer, FieldListFilter.create
  108
+                        field, field_list_filter_class = list_filter, FieldListFilter.create
109 109
                     if not isinstance(field, models.Field):
110 110
                         field_path = field
111 111
                         field = get_fields_from_path(self.model, field_path)[-1]

0 notes on commit e3a845d

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