Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e3a845de6a31554abe7ca6be247cda5bdd15edf4 1 parent 43503b0
@jezdez jezdez authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 django/contrib/admin/views/
12 django/contrib/admin/views/
@@ -91,21 +91,21 @@ def get_filters(self, request, use_distinct=False):
filter_specs = []
cleaned_params, use_distinct = self.get_lookup_params(use_distinct)
if self.list_filter:
- for list_filer in self.list_filter:
- if callable(list_filer):
+ for list_filter in self.list_filter:
+ if callable(list_filter):
# This is simply a custom list filter class.
- spec = list_filer(request, cleaned_params,
+ spec = list_filter(request, cleaned_params,
self.model, self.model_admin)
field_path = None
- if isinstance(list_filer, (tuple, list)):
+ if isinstance(list_filter, (tuple, list)):
# This is a custom FieldListFilter class for a given field.
- field, field_list_filter_class = list_filer
+ field, field_list_filter_class = list_filter
# This is simply a field name, so use the default
# FieldListFilter class that has been registered for
# the type of the given field.
- field, field_list_filter_class = list_filer, FieldListFilter.create
+ field, field_list_filter_class = list_filter, FieldListFilter.create
if not isinstance(field, models.Field):
field_path = field
field = get_fields_from_path(self.model, field_path)[-1]
Please sign in to comment.
Something went wrong with that request. Please try again.