Author: ubernostrum Date: 2008-12-11 01:07:03 -0600 (Thu, 11 Dec 2008) New Revision: 9642
Modified: django/branches/releases/1.0.X/django/contrib/admin/views/main.py Log: [1.0.X] Fixed #9795: Since related-object selection widgets take limit_choices_to into account, the offending code is no longer necessary and can simply be removed. Was [9641] in trunk. Modified: django/branches/releases/1.0.X/django/contrib/admin/views/main.py =================================================================== --- django/branches/releases/1.0.X/django/contrib/admin/views/main.py 2008-12-11 07:06:25 UTC (rev 9641) +++ django/branches/releases/1.0.X/django/contrib/admin/views/main.py 2008-12-11 07:07:03 UTC (rev 9642) @@ -237,9 +237,6 @@ qs = qs.distinct() break - if self.is_popup and self.opts.one_to_one_field: - qs = qs.complex_filter(self.opts.one_to_one_field.rel.limit_choices_to) - return qs def url_for_result(self, result): --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---