django/tests/model_forms
Christopher Adams eefc88feef Fixed #2445 -- Allowed limit_choices_to attribute to be a callable.
ForeignKey or ManyToManyField attribute ``limit_choices_to`` can now
be a callable that returns either a ``Q`` object or a dict.

Thanks michael at actrix.gen.nz for the original suggestion.
2014-02-11 14:05:12 -05:00
..
__init__.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
models.py Fixed #2445 -- Allowed limit_choices_to attribute to be a callable. 2014-02-11 14:05:12 -05:00
test.png Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
test2.png Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
tests.py Fixed #2445 -- Allowed limit_choices_to attribute to be a callable. 2014-02-11 14:05:12 -05:00