mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +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:
parent
addbe83dcc
commit
dc63fc7b4b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user