1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

magic-removal: Updated docstring for LazyDate.

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2546 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Luke Plant 2006-03-22 00:56:48 +00:00
parent c0f3555eef
commit 3da050e44e

View File

@ -20,7 +20,7 @@ class LazyDate:
Use in limit_choices_to to compare the field to dates calculated at run time
instead of when the model is loaded. For example::
... limit_choices_to = {'date__gt' : meta.LazyDate(days=-3)} ...
... limit_choices_to = {'date__gt' : models.LazyDate(days=-3)} ...
which will limit the choices to dates greater than three days ago.
"""