summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2015-02-09 22:41:57 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2015-02-10 21:41:19 +0100
commit1b8af4cfa023161924a45fb572399d2f3071bf5b (patch)
tree04d44e1f35094798ba804bae6e4d16a5318f199a /docs
parentc7a6996df7e77bc3b9c5e581e67d766627ebabec (diff)
Disallowed importing concrete models without an application.
Removed fragile algorithm to find which application a model belongs to. Fixed #21680, #21719. Refs #21794.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/options.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/ref/models/options.txt b/docs/ref/models/options.txt
index 5fd363f0d9..2f4f5aff71 100644
--- a/docs/ref/models/options.txt
+++ b/docs/ref/models/options.txt
@@ -24,9 +24,8 @@ Available ``Meta`` options
.. attribute:: Options.app_label
- If a model exists outside of an application in :setting:`INSTALLED_APPS` or
- if it's imported before its application was loaded, it must define which
- app it is part of::
+ If a model is defined outside of an application in
+ :setting:`INSTALLED_APPS`, it must declare which app it belongs to::
app_label = 'myapp'