magic-removal: Updated docs/model-api.txt to remove sections on 'exceptions' and 'module_constants' params to 'class Meta'
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2116 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
ff474dffab
commit
8708245d96
|
@ -735,13 +735,6 @@ Here's a list of all possible ``Meta`` options. No options are required. Adding
|
|||
that aren't allowed in Python variable names -- notably, the hyphen --
|
||||
that's OK. Django quotes column and table names behind the scenes.
|
||||
|
||||
``exceptions``
|
||||
Names of extra exception subclasses to include in the generated module.
|
||||
These exceptions are available from instance methods and from module-level
|
||||
methods::
|
||||
|
||||
exceptions = ("DisgustingToppingsException", "BurntCrust")
|
||||
|
||||
``get_latest_by``
|
||||
The name of a ``DateField`` or ``DateTimeField``. If given, the module will
|
||||
have a ``get_latest()`` function that fetches the "latest" object according
|
||||
|
@ -753,14 +746,6 @@ Here's a list of all possible ``Meta`` options. No options are required. Adding
|
|||
|
||||
.. _Getting the "latest" object: http://www.djangoproject.com/documentation/models/get_latest/
|
||||
|
||||
``module_constants``
|
||||
A dictionary of names/values to use as extra module-level constants::
|
||||
|
||||
module_constants = {
|
||||
'MEAT_TYPE_PEPPERONI' : 1,
|
||||
'MEAT_TYPE_SAUSAGE' : 2,
|
||||
}
|
||||
|
||||
``module_name``
|
||||
The name of the module::
|
||||
|
||||
|
|
Loading…
Reference in New Issue