Skip to content

Commit

Permalink
Fixed #9674 - documented app_label.
Browse files Browse the repository at this point in the history
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
spookylukey committed Sep 28, 2009
1 parent 6e3a725 commit 055efb2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/ref/models/options.txt
Expand Up @@ -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``
------------

Expand Down

0 comments on commit 055efb2

Please sign in to comment.