Ticket #9674: 9674.patch

File 9674.patch, 625 bytes (added by John Paulett, 15 years ago)
  • docs/ref/models/options.txt

     
    1919
    2020If ``True``, this model will be an :ref:`abstract base class <abstract-base-classes>`.
    2121
     22``app_label``
     23-------------
     24
     25.. attribute:: Options.app_label
     26
     27If a model exists outside of the standard :file:`models.py` (for instance, if
     28the app's models are in submodules of ``myapp.models``), the model must define
     29which app it is part of::
     30
     31    app_label = 'myapp'
     32
    2233``db_table``
    2334------------
    2435
Back to Top