diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2009-09-28 21:58:21 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2009-09-28 21:58:21 +0000 |
| commit | 055efb25308feac83f5488b5abc8f5436434fc66 (patch) | |
| tree | b84f94a3c47a868a5b6dac88d7185c3312724063 /docs/ref | |
| parent | 6e3a72585a727d46ea03871f14a9a2f0f15fbf93 (diff) | |
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
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/models/options.txt | 11 |
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`` ------------ |
