diff options
| author | Boulder Sprinters <boulder-sprinters@djangoproject.com> | 2007-04-09 23:39:40 +0000 |
|---|---|---|
| committer | Boulder Sprinters <boulder-sprinters@djangoproject.com> | 2007-04-09 23:39:40 +0000 |
| commit | 8ceeb6d8cb5933ae518b2c75338decd2fc1bc97b (patch) | |
| tree | 0db375d2fdfe324eddd17fa1e7f95df019732949 /docs/model-api.txt | |
| parent | a9b2c0686d98f78ca365a04057699a44f7711914 (diff) | |
boulder-oracle-sprint: Merged to [4989]
git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@4990 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/model-api.txt')
| -rw-r--r-- | docs/model-api.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/model-api.txt b/docs/model-api.txt index a03ed09eb2..400617a012 100644 --- a/docs/model-api.txt +++ b/docs/model-api.txt @@ -734,10 +734,10 @@ relationship should work. All are optional: ``limit_choices_to`` A dictionary of lookup arguments and values (see the `Database API reference`_) that limit the available admin choices for this object. Use this - with ``models.LazyDate`` to limit choices of objects - by date. For example:: + with functions from the Python ``datetime`` module + to limit choices of objects by date. For example:: - limit_choices_to = {'pub_date__lte': models.LazyDate()} + limit_choices_to = {'pub_date__lte': datetime.now} only allows the choice of related objects with a ``pub_date`` before the current date/time to be |
