mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #31123 -- Added --include-stale-apps option to the remove_stale_contenttypes management command.
Co-Authored-By: Javier Buzzi <buzzi.javier@gmail.com>
This commit is contained in:
committed by
Mariusz Felisiak
parent
13993e0f38
commit
142ab6846a
@@ -1651,6 +1651,13 @@ the deletion.
|
||||
|
||||
Specifies the database to use. Defaults to ``default``.
|
||||
|
||||
.. django-admin-option:: --include-stale-apps
|
||||
|
||||
.. versionadded:: 3.1
|
||||
|
||||
Deletes stale content types including ones from previously installed apps that
|
||||
have been removed from :setting:`INSTALLED_APPS`. Defaults to ``False``.
|
||||
|
||||
``django.contrib.gis``
|
||||
----------------------
|
||||
|
||||
|
||||
@@ -99,7 +99,9 @@ Minor features
|
||||
:mod:`django.contrib.contenttypes`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* ...
|
||||
* The new :option:`remove_stale_contenttypes --include-stale-apps` option
|
||||
allows removing stale content types from previously installed apps that have
|
||||
been removed from :setting:`INSTALLED_APPS`.
|
||||
|
||||
:mod:`django.contrib.gis`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user