diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2009-09-28 22:04:20 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2009-09-28 22:04:20 +0000 |
| commit | c557ea6c120798e49104aa475d24e4570a684776 (patch) | |
| tree | 79e686e9516a60f9ee496fff0fafcf38bf2ccee6 | |
| parent | f8c97127bb494a4b1daae04dc812a54c1917f7fc (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
| -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`` ------------ |
