Branch: refs/heads/master
Home:
https://github.com/django/django
Commit: eefc88feefec0c3685bfb102714530b751b4ae90
https://github.com/django/django/commit/eefc88feefec0c3685bfb102714530b751b4ae90
Author: Christopher Adams <
christoph...@gmail.com>
Date: 2014-02-11 (Tue, 11 Feb 2014)
Changed paths:
M AUTHORS
M django/contrib/admin/options.py
M django/contrib/admin/utils.py
M django/contrib/admin/widgets.py
M django/db/models/fields/__init__.py
M django/db/models/fields/related.py
M django/forms/fields.py
M django/forms/models.py
M docs/ref/models/fields.txt
M docs/releases/1.7.txt
M tests/admin_views/admin.py
M tests/admin_views/models.py
M tests/admin_views/tests.py
M tests/model_forms/models.py
M tests/model_forms/tests.py
Log Message:
-----------
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.