Fixed #24195 -- Deconstructed the limit_choices_to option of related fields.

Migrations will now be created for changes to limit_choices_to.
This commit is contained in:
Adam Bogdał 2016-11-11 02:38:16 +01:00 committed by Tim Graham
parent f2b6986317
commit cd2fe829dd
4 changed files with 37 additions and 0 deletions

View file

@ -444,6 +444,10 @@ Miscellaneous
* A model instance's primary key now appears in the default ``Model.__str__()``
method, e.g. ``Question object (1)``.
* ``makemigrations`` now detects changes to the model field ``limit_choices_to``
option. Add this to your existing migrations or accept an auto-generated
migration for fields that use it.
.. _deprecated-features-2.0:
Features deprecated in 2.0