#4759: [newforms-admin] fixed a bug, admin class has no 'manager' attribute
-------------------------------------------+--------------------------------
Reporter:  yi.codeplayer at gmail dot com  |       Owner:  adrian         
  Status:  new                             |   Component:  Admin interface
 Version:  newforms-admin                  |    Keywords:                 
   Stage:  Unreviewed                      |   Has_patch:  1              
-------------------------------------------+--------------------------------
 First you need Ticket #4587, so you has ``model._meta.admin`` ,
 but admin class has no attribute named 'manager', and this patch fixed
 this.
 {{{
 -        self.lookup_choices =
 model._meta.admin.manager.distinct().order_by(f.name).values(f.name)
 +        self.lookup_choices =
 
model._meta.admin(model).queryset(request).distinct().order_by(f.name).values(f.name)
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4759>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
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