| 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 | | |
|---|