Ticket #3973: filter_allvalue_fix.diff

File filter_allvalue_fix.diff, 690 bytes (added by philippe.raoult@…, 18 years ago)
  • django/contrib/admin/filterspecs.py

     
    158158    def __init__(self, f, request, params, model):
    159159        super(AllValuesFilterSpec, self).__init__(f, request, params, model)
    160160        self.lookup_val = request.GET.get(f.name, None)
    161         self.lookup_choices = model._meta.admin.manager.distinct().order_by(f.name).values(f.name)
     161        self.lookup_choices = model._default_manager.distinct().order_by(f.name).values(f.name)
    162162
    163163    def title(self):
    164164        return self.field.verbose_name
Back to Top