summaryrefslogtreecommitdiff
path: root/docs/releases
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-01-24 22:43:00 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-01-25 10:41:56 +0100
commit2ff93e027c7b35378cc450a926bc2e4a446cacf0 (patch)
treea6c95d694eadb4bd66b37e9bedad5047d1428d69 /docs/releases
parent29ddae7436e84f4713c7babeabdf9a1fa62d6543 (diff)
Fixed #21829 -- Added default AppConfigs.
Thanks Russell for the report, Marc for the initial patch, Carl for the final review, and everyone who contributed to the design discussion.
Diffstat (limited to 'docs/releases')
-rw-r--r--docs/releases/1.7.txt17
1 files changed, 10 insertions, 7 deletions
diff --git a/docs/releases/1.7.txt b/docs/releases/1.7.txt
index df115c6c15..684daa988c 100644
--- a/docs/releases/1.7.txt
+++ b/docs/releases/1.7.txt
@@ -89,17 +89,14 @@ Improvements thus far include:
* The name of applications can be customized in the admin with the
:attr:`~django.apps.AppConfig.verbose_name` of application configurations.
+* The admin automatically calls :func:`~django.contrib.admin.autodiscover()`
+ when Django starts. You can consequently remove this line from your
+ URLconf.
+
* Django imports all application configurations and models as soon as it
starts, through a deterministic and straightforward process. This should
make it easier to diagnose import issues such as import loops.
-* The admin has an :class:`~django.contrib.admin.apps.AdminConfig` application
- configuration class. When Django starts, this class takes care of calling
- :func:`~django.contrib.admin.autodiscover()`. To use it, simply replace
- ``'django.contrib.admin'`` in :setting:`INSTALLED_APPS` with
- ``'django.contrib.admin.apps.AdminConfig'`` and remove
- ``admin.autodiscover()`` from your URLconf.
-
New method on Field subclasses
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -698,6 +695,12 @@ regressions cannot be ruled out. You may encounter the following exceptions:
results. The code will be executed when you first need its results. This
concept is known as "lazy evaluation".
+* ``django.contrib.admin`` will now automatically perform autodiscovery of
+ ``admin`` modules in installed applications. To prevent it, change your
+ :setting:`INSTALLED_APPS` to contain
+ ``'django.contrib.admin.apps.SimpleAdminConfig'`` instead of
+ ``'django.contrib.admin'``.
+
Standalone scripts
^^^^^^^^^^^^^^^^^^