From 055efb25308feac83f5488b5abc8f5436434fc66 Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Mon, 28 Sep 2009 21:58:21 +0000 Subject: [PATCH] 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 --- docs/ref/models/options.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/ref/models/options.txt b/docs/ref/models/options.txt index 8402567f7a0..9bf73f5b85f 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 `. +``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`` ------------