#2445: [patch] allow callable values for limit_choices_to
------------------------------------------+----------------------
Reporter: michael@… | Owner: nobody
Status: new | Milestone:
Component: Core framework | Version:
Resolution: | Keywords:
Triage Stage: Accepted | Has patch: 1
Needs documentation: 1 | Needs tests: 1
Patch needs improvement: 1 |
------------------------------------------+----------------------
Changes (by stj):
* cc: stj (added)
Comment:
Spent some time at the PyCon 2011 sprint session on this and came up with
a new implementation.
The choices_for_FOO method needs to return a QuerySet though in this
implementation is no check for that.
In a small test application I tested this with InlineModelAdmin and found
no bugs.
--
Ticket URL: <http://code.djangoproject.com/ticket/2445#comment:32>
Django <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.