summaryrefslogtreecommitdiff
path: root/docs/ref/models
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2009-09-28 22:04:20 +0000
committerLuke Plant <L.Plant.98@cantab.net>2009-09-28 22:04:20 +0000
commitc557ea6c120798e49104aa475d24e4570a684776 (patch)
tree79e686e9516a60f9ee496fff0fafcf38bf2ccee6 /docs/ref/models
parentf8c97127bb494a4b1daae04dc812a54c1917f7fc (diff)
[1.1.X] Fixed #9674 - documented app_label.
Thanks to andymckay for the report and jpaulett for the patch. Backport for [11596] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11597 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/models')
-rw-r--r--docs/ref/models/options.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/ref/models/options.txt b/docs/ref/models/options.txt
index 8402567f7a..9bf73f5b85 100644
--- a/docs/ref/models/options.txt
+++ b/docs/ref/models/options.txt
@@ -19,6 +19,17 @@ Available ``Meta`` options
If ``True``, this model will be an :ref:`abstract base class <abstract-base-classes>`.
+``app_label``
+-------------
+
+.. attribute:: Options.app_label
+
+If a model exists outside of the standard :file:`models.py` (for instance, if
+the app's models are in submodules of ``myapp.models``), the model must define
+which app it is part of::
+
+ app_label = 'myapp'
+
``db_table``
------------