mirror of
https://github.com/django/django.git
synced 2025-08-19 02:01:29 +00:00
Fixed #35656 -- Added an autodetector attribute to the makemigrations and migrate commands.
This commit is contained in:
parent
dc626fbe3a
commit
06bf06a911
10 changed files with 142 additions and 4 deletions
|
@ -77,6 +77,7 @@ Django's system checks are organized using the following tags:
|
|||
* ``async_support``: Checks asynchronous-related configuration.
|
||||
* ``caches``: Checks cache related configuration.
|
||||
* ``compatibility``: Flags potential problems with version upgrades.
|
||||
* ``commands``: Checks custom management commands related configuration.
|
||||
* ``database``: Checks database-related configuration issues. Database checks
|
||||
are not run by default because they do more than static code analysis as
|
||||
regular checks do. They are only run by the :djadmin:`migrate` command or if
|
||||
|
@ -428,6 +429,14 @@ Models
|
|||
* **models.W047**: ``<database>`` does not support unique constraints with
|
||||
nulls distinct.
|
||||
|
||||
Management Commands
|
||||
-------------------
|
||||
|
||||
The following checks verify custom management commands are correctly configured:
|
||||
|
||||
* **commands.E001**: The ``migrate`` and ``makemigrations`` commands must have
|
||||
the same ``autodetector``.
|
||||
|
||||
Security
|
||||
--------
|
||||
|
||||
|
|
|
@ -230,6 +230,10 @@ Management Commands
|
|||
setting the :envvar:`HIDE_PRODUCTION_WARNING` environment variable to
|
||||
``"true"``.
|
||||
|
||||
* The :djadmin:`makemigrations` and :djadmin:`migrate` commands have a new
|
||||
``Command.autodetector`` attribute for subclasses to override in order to use
|
||||
a custom autodetector class.
|
||||
|
||||
Migrations
|
||||
~~~~~~~~~~
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue