Ticket #2818: search_distinct.diff
File search_distinct.diff, 520 bytes (added by , 18 years ago) |
---|
-
django/contrib/admin/views/main.py
735 735 if self.opts.one_to_one_field: 736 736 qs = qs.complex_filter(self.opts.one_to_one_field.rel.limit_choices_to) 737 737 738 return qs 738 return qs.distinct() 739 739 740 740 def url_for_result(self, result): 741 741 return "%s/" % quote(getattr(result, self.pk_attname))