[1.6.x] Fixed QuerySet datetimes argument name in docs.

Backport of 6b39401baf from master
This commit is contained in:
Oliver Meinusch 2014-10-27 23:18:37 +01:00 committed by Tim Graham
parent 54c2c5e048
commit deb11b0edf
1 changed files with 2 additions and 2 deletions

View File

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