1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #25304 -- Allowed management commands to check if migrations are applied.

This commit is contained in:
Mounir Messelmeni
2016-02-12 11:02:36 +01:00
committed by Tim Graham
parent 004ba0f99e
commit 50931dfa53
8 changed files with 76 additions and 39 deletions

View File

@@ -248,6 +248,12 @@ Management Commands
* Added a warning to :djadmin:`dumpdata` if a proxy model is specified (which
results in no output) without its concrete parent.
* The new :attr:`BaseCommand.requires_migrations_checks
<django.core.management.BaseCommand.requires_migrations_checks>` attribute
may be set to ``True`` if you want your command to print a warning, like
:djadmin:`runserver` does, if the set of migrations on disk don't match the
migrations in the database.
Migrations
~~~~~~~~~~