summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-01-10 23:06:19 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-01-10 23:43:10 +0100
commit3326a412ccde9f72e22a070a0b4d922048ed2286 (patch)
tree7583ee99e53ab3d3bf846f1aec79dc34d330d2cf /docs/ref
parent81bb8d12209a419142b1bf6961fbf9fc44419dcd (diff)
Deprecated importing a model before loading its application.
Refs #21719, #21680.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/applications.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/ref/applications.txt b/docs/ref/applications.txt
index a44062808e..e496f24487 100644
--- a/docs/ref/applications.txt
+++ b/docs/ref/applications.txt
@@ -181,6 +181,13 @@ Methods
as registering signals. It is called as soon as the registry is fully
populated.
+ You cannot import models in modules that define application configuration
+ classes, but you can use :meth:`get_model` to access a model class by
+ name, like this::
+
+ def ready(self):
+ MyModel = self.get_model('MyModel')
+
Application registry
====================