Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit c62a014049257ada0d47c296eef2c14f51e49646 1 parent aa3712b
Adrian Holovaty authored May 03, 2006

Showing 1 changed file with 0 additions and 10 deletions. Show diff stats Hide diff stats

  1. 10  docs/model-api.txt
10  docs/model-api.txt
@@ -1277,16 +1277,6 @@ of object instances. For example::
1277 1277
 
1278 1278
 Now, every ``Pizza`` object will have a ``is_disgusting()`` method.
1279 1279
 
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  
-
1290 1280
 See `Giving models custom methods`_ for a full example.
1291 1281
 
1292 1282
 .. _Giving models custom methods: http://www.djangoproject.com/documentation/models/custom_methods/

0 notes on commit c62a014

Please sign in to comment.
Something went wrong with that request. Please try again.