Ticket #3096: 3096-filterspecs-2.patch
File 3096-filterspecs-2.patch, 606 bytes (added by , 17 years ago) |
---|
-
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