Django

Code

Changeset 2819

Show
Ignore:
Timestamp:
05/02/06 23:19:59 (3 years ago)
Author:
adrian
Message:

Fixed #1747 -- Fixed error in docs/model-api.txt.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/model-api.txt

    r2812 r2819  
    12781278Now, every ``Pizza`` object will have a ``is_disgusting()`` method. 
    12791279 
    1280 Note that the scope of custom methods is modified to be the same as the module 
    1281 scope. These methods do NOT have access to globals within your model's module. 
    1282 Additionally, custom methods have access to a few commonly-used objects for 
    1283 convenience: 
    1284  
    1285     * The ``datetime`` module from Python's standard library. 
    1286     * The ``db`` object from ``django.core.db``. This represents the database 
    1287       connection, so you can do custom queries via a cursor object. See 
    1288       "Executing custom SQL" below. 
    1289  
    12901280See `Giving models custom methods`_ for a full example. 
    12911281