Fixed #24116 -- Moved AdminSite.check_dependencies() to system checks.

This commit is contained in:
Vincenzo Pandolfo 2015-12-10 12:45:21 +00:00 committed by Tim Graham
parent 956cde8004
commit 0490d72f2a
5 changed files with 93 additions and 39 deletions

View file

@ -409,6 +409,16 @@ registered as an inline on a :class:`~django.contrib.admin.ModelAdmin`.
* **admin.E304**: ``<model>`` has no ``GenericForeignKey`` using content type
field ``<field name>`` and object ID field ``<field name>``.
AdminSite
~~~~~~~~~
The following checks are performed on the default
:class:`~django.contrib.admin.AdminSite`:
* **admin.E401**: :mod:`django.contrib.contenttypes` must be in
:setting:`INSTALLED_APPS` in order to use the admin application.
* **admin.E402**: :mod:`django.contrib.auth.context_processors.auth`
must be in :setting:`TEMPLATES` in order to use the admin application.
Auth
----