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:
Adrian Holovaty 2006-01-23 04:37:24 +00:00
parent ff474dffab
commit 8708245d96
1 changed files with 0 additions and 15 deletions

View File

@ -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 aren't allowed in Python variable names -- notably, the hyphen --
that's OK. Django quotes column and table names behind the scenes. 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`` ``get_latest_by``
The name of a ``DateField`` or ``DateTimeField``. If given, the module will The name of a ``DateField`` or ``DateTimeField``. If given, the module will
have a ``get_latest()`` function that fetches the "latest" object according 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/ .. _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`` ``module_name``
The name of the module:: The name of the module::