diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-05-03 04:19:59 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-05-03 04:19:59 +0000 |
| commit | c62a014049257ada0d47c296eef2c14f51e49646 (patch) | |
| tree | 2feac8212f90c53d43f14044f01ca9522d54853e /docs/model-api.txt | |
| parent | aa3712bef038b94787c77ce80e0f401392c84f70 (diff) | |
Fixed #1747 -- Fixed error in docs/model-api.txt.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2819 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/model-api.txt')
| -rw-r--r-- | docs/model-api.txt | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/docs/model-api.txt b/docs/model-api.txt index de3fe10598..c24a3e76b9 100644 --- a/docs/model-api.txt +++ b/docs/model-api.txt @@ -1277,16 +1277,6 @@ of object instances. For example:: Now, every ``Pizza`` object will have a ``is_disgusting()`` method. -Note that the scope of custom methods is modified to be the same as the module -scope. These methods do NOT have access to globals within your model's module. -Additionally, custom methods have access to a few commonly-used objects for -convenience: - - * The ``datetime`` module from Python's standard library. - * The ``db`` object from ``django.core.db``. This represents the database - connection, so you can do custom queries via a cursor object. See - "Executing custom SQL" below. - See `Giving models custom methods`_ for a full example. .. _Giving models custom methods: http://www.djangoproject.com/documentation/models/custom_methods/ |
