summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorOliver Meinusch <omeinusch@users.noreply.github.com>2014-10-27 23:18:37 +0100
committerTim Graham <timograham@gmail.com>2014-10-27 19:49:50 -0400
commit9766ed6a0ef5c374ab9f43cdf0ad73b714f84d92 (patch)
treec0e7cf242273107a36b19b1f78fbffde02e356c4 /docs
parentb7231e39a41d1897e73832803e4ceeeda11615e5 (diff)
[1.7.x] Fixed QuerySet datetimes argument name in docs.
Backport of 6b39401baf from master
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/querysets.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index b49c00f552..4143787958 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -653,13 +653,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