diff options
| author | leondaz <ahmeddark369@gmail.com> | 2024-09-09 19:15:40 +0300 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-10-15 16:39:12 +0200 |
| commit | 06bf06a911695c5c84f746742f764c040e237ece (patch) | |
| tree | 3f54dfb3f6889c3f5d6a676e5be8556c0fe303ed /docs | |
| parent | dc626fbe3ae0225b765df71d08fab02971dc6c6f (diff) | |
Fixed #35656 -- Added an autodetector attribute to the makemigrations and migrate commands.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/checks.txt | 9 | ||||
| -rw-r--r-- | docs/releases/5.2.txt | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index d78a6f76b2..2308a854c7 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -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 -------- diff --git a/docs/releases/5.2.txt b/docs/releases/5.2.txt index eabc27c277..78c96688cf 100644 --- a/docs/releases/5.2.txt +++ b/docs/releases/5.2.txt @@ -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 ~~~~~~~~~~ |
