Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #9674 - documented app_label.

Thanks to andymckay for the report and jpaulett for the patch.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@11596 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 055efb25308feac83f5488b5abc8f5436434fc66 1 parent 6e3a725
Luke Plant authored

Showing 1 changed file with 11 additions and 0 deletions. Show diff stats Hide diff stats

  1. 11  docs/ref/models/options.txt
11  docs/ref/models/options.txt
@@ -19,6 +19,17 @@ Available ``Meta`` options
19 19
 
20 20
 If ``True``, this model will be an :ref:`abstract base class <abstract-base-classes>`.
21 21
 
  22
+``app_label``
  23
+-------------
  24
+
  25
+.. attribute:: Options.app_label
  26
+
  27
+If a model exists outside of the standard :file:`models.py` (for instance, if
  28
+the app's models are in submodules of ``myapp.models``), the model must define
  29
+which app it is part of::
  30
+
  31
+    app_label = 'myapp'
  32
+
22 33
 ``db_table``
23 34
 ------------
24 35
 

0 notes on commit 055efb2

Please sign in to comment.
Something went wrong with that request. Please try again.