Author: jkocherhans
Date: 2007-09-11 20:36:16 -0500 (Tue, 11 Sep 2007)
New Revision: 6103

Modified:
   django/branches/newforms-admin/django/contrib/admin/filterspecs.py
Log:
newforms-admin: Fixed #4699. list_filter broken in admin for strings.

Modified: django/branches/newforms-admin/django/contrib/admin/filterspecs.py
===================================================================
--- django/branches/newforms-admin/django/contrib/admin/filterspecs.py  
2007-09-12 01:34:25 UTC (rev 6102)
+++ django/branches/newforms-admin/django/contrib/admin/filterspecs.py  
2007-09-12 01:36:16 UTC (rev 6103)
@@ -160,7 +160,7 @@
     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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to