#4206: In Admin "list_filter" does not respect "limit_choices_to"
-------------------------------+--------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: new | Component: Admin interface
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 0
-------------------------------+--------------------------------------------
If a list filter is defined as
{{{
list_filter = ('nl_group')
}}}
And the 'nl_group' field is defined as
{{{
nl_group = models.ForeignKey('self', limit_choices_to =
{'o1type__exact': 'NL'}, null=True, blank=True)
}}}
Then the list filter will show ALL distinct values of 'self' rather than
the distinct values in 'self' that have oltype='NL'
--
Ticket URL: <http://code.djangoproject.com/ticket/4206>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---