#12582: Model validation of ForeignKeys ignore limit_choices_to
---------------------------------------------------+------------------------
Reporter: Honza_Kral | Owner: Honza_Kral
Status: new | Milestone: 1.2
Component: Uncategorized | Version: SVN
Keywords: validation limit choices foreign keys | Stage: Unreviewed
Has_patch: 0 |
---------------------------------------------------+------------------------
When checking valida value of a FK field:
{{{
self.rel.to._default_manager.get(**{self.rel.field_name:value})
}}}
is used instead of more efficient {{{.exists()}}} and
{{{limit_choices_to}}} option is ignored
--
Ticket URL: <
http://code.djangoproject.com/ticket/12582>
Django <
http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.