1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

[1.8.x] Fixed #25382 -- Removed obsolete references to DateQuerySet.

Backport of e3720b990a from master
This commit is contained in:
Renato Oliveira
2015-09-11 10:14:35 -05:00
committed by Tim Graham
parent d32edd8c99
commit f328ebdede
4 changed files with 17 additions and 23 deletions

View File

@@ -660,9 +660,9 @@ dates
.. method:: dates(field, kind, order='ASC')
Returns a ``DateQuerySet`` — a ``QuerySet`` that evaluates to a list of
:class:`datetime.date` objects representing all available dates of a
particular kind within the contents of the ``QuerySet``.
Returns a ``QuerySet`` that evaluates to a list of :class:`datetime.date`
objects representing all available dates of a particular kind within the
contents of the ``QuerySet``.
``field`` should be the name of a ``DateField`` of your model.
``kind`` should be either ``"year"``, ``"month"`` or ``"day"``. Each