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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user