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:
parent
c0f3555eef
commit
3da050e44e
@ -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.
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user