Ticket #3096: 3096-filterspecs-newforms-admin.diff
File 3096-filterspecs-newforms-admin.diff, 669 bytes (added by , 17 years ago) |
---|
-
django/contrib/admin/filterspecs.py
58 58 self.lookup_title = f.verbose_name 59 59 self.lookup_kwarg = '%s__%s__exact' % (f.name, f.rel.to._meta.pk.name) 60 60 self.lookup_val = request.GET.get(self.lookup_kwarg, None) 61 self.lookup_choices = f.rel.to._default_manager. all()61 self.lookup_choices = f.rel.to._default_manager.complex_filter(f.rel.limit_choices_to) 62 62 63 63 def has_output(self): 64 64 return len(self.lookup_choices) > 1