mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
newforms-admin: Fixed #4699. list_filter broken in admin for strings.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6103 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -160,7 +160,7 @@ class AllValuesFilterSpec(FilterSpec):
|
||||
def __init__(self, f, request, params, model):
|
||||
super(AllValuesFilterSpec, self).__init__(f, request, params, model)
|
||||
self.lookup_val = request.GET.get(f.name, None)
|
||||
self.lookup_choices = model._meta.admin.manager.distinct().order_by(f.name).values(f.name)
|
||||
self.lookup_choices = model._default_manager.distinct().order_by(f.name).values(f.name)
|
||||
|
||||
def title(self):
|
||||
return self.field.verbose_name
|
||||
|
||||
Reference in New Issue
Block a user