1
0
mirror of https://github.com/django/django.git synced 2025-10-26 15:16:09 +00:00

Fixed #1579 - added support for 'Q' objects in limit_choices_to.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2850 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Luke Plant
2006-05-06 00:26:24 +00:00
parent 3f932e31dc
commit f57e34e990
8 changed files with 39 additions and 8 deletions

View File

@@ -714,7 +714,7 @@ class ChangeList(object):
qs = qs & other_qs
if self.opts.one_to_one_field:
qs = qs.filter(**self.opts.one_to_one_field.rel.limit_choices_to)
qs = qs.complex_filter(self.opts.one_to_one_field.rel.limit_choices_to)
return qs