diff options
| author | Oliver Meinusch <omeinusch@users.noreply.github.com> | 2014-10-27 23:18:37 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-10-27 19:50:25 -0400 |
| commit | deb11b0edf0bde7408748682a8ba49bff5fbef3e (patch) | |
| tree | e0b8b714d27f959fd4eb63884433f27e2345944f | |
| parent | 54c2c5e0485d3951df553513a5640224cb668050 (diff) | |
[1.6.x] Fixed QuerySet datetimes argument name in docs.
Backport of 6b39401baf from master
| -rw-r--r-- | docs/ref/models/querysets.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index ce77e052a9..7f4ff46f56 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -619,13 +619,13 @@ datetimes .. versionadded:: 1.6 -.. method:: datetimes(field, kind, order='ASC', tzinfo=None) +.. method:: datetimes(field_name, kind, order='ASC', tzinfo=None) Returns a ``DateTimeQuerySet`` — a ``QuerySet`` that evaluates to a list of :class:`datetime.datetime` objects representing all available dates of a particular kind within the contents of the ``QuerySet``. -``field`` should be the name of a ``DateTimeField`` of your model. +``field_name`` should be the name of a ``DateTimeField`` of your model. ``kind`` should be either ``"year"``, ``"month"``, ``"day"``, ``"hour"``, ``"minute"`` or ``"second"``. Each ``datetime.datetime`` object in the result |
