mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[1.8.x] Fixed #25382 -- Removed obsolete references to DateQuerySet.
Backport of e3720b990a from master
This commit is contained in:
committed by
Tim Graham
parent
d32edd8c99
commit
f328ebdede
@@ -48,11 +48,9 @@ ArchiveIndexView
|
||||
:class:`django.views.generic.dates.BaseDateListView`), the template's
|
||||
context will be:
|
||||
|
||||
* ``date_list``: A
|
||||
:meth:`DateQuerySet<django.db.models.query.QuerySet.dates>` object
|
||||
containing all years that have objects available according to
|
||||
``queryset``, represented as
|
||||
:class:`datetime.datetime<python:datetime.datetime>` objects, in
|
||||
* ``date_list``: A :meth:`QuerySet <django.db.models.query.QuerySet.dates>`
|
||||
object containing all years that have objects available according to
|
||||
``queryset``, represented as :class:`datetime.datetime` objects, in
|
||||
descending order.
|
||||
|
||||
**Notes**
|
||||
@@ -128,11 +126,9 @@ YearArchiveView
|
||||
:class:`django.views.generic.dates.BaseDateListView`), the template's
|
||||
context will be:
|
||||
|
||||
* ``date_list``: A
|
||||
:meth:`DateQuerySet<django.db.models.query.QuerySet.dates>` object
|
||||
containing all months that have objects available according to
|
||||
``queryset``, represented as
|
||||
:class:`datetime.datetime<python:datetime.datetime>` objects, in
|
||||
* ``date_list``: A :meth:`QuerySet <django.db.models.query.QuerySet.dates>`
|
||||
object containing all months that have objects available according to
|
||||
``queryset``, represented as :class:`datetime.datetime` objects, in
|
||||
ascending order.
|
||||
|
||||
* ``year``: A :class:`~datetime.date` object
|
||||
@@ -223,12 +219,10 @@ MonthArchiveView
|
||||
:class:`~django.views.generic.dates.BaseDateListView`), the template's
|
||||
context will be:
|
||||
|
||||
* ``date_list``: A
|
||||
:meth:`DateQuerySet<django.db.models.query.QuerySet.dates>` object
|
||||
containing all days that have objects available in the given month,
|
||||
according to ``queryset``, represented as
|
||||
:class:`datetime.datetime<python:datetime.datetime>` objects, in
|
||||
ascending order.
|
||||
* ``date_list``: A :meth:`QuerySet <django.db.models.query.QuerySet.dates>`
|
||||
object containing all days that have objects available in the given month,
|
||||
according to ``queryset``, represented as :class:`datetime.datetime`
|
||||
objects, in ascending order.
|
||||
|
||||
* ``month``: A :class:`~datetime.date` object
|
||||
representing the given month.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user