1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

[1.5.x] Added missing markup to docs.

Backport of 93cffc3b37 from master.
This commit is contained in:
Tim Graham
2013-03-22 05:50:45 -04:00
parent 1363b41823
commit f7ca464039
37 changed files with 164 additions and 148 deletions

View File

@@ -35,8 +35,8 @@ YearMixin
Tries the following sources, in order:
* The value of the :attr:`YearMixin.year` attribute.
* The value of the `year` argument captured in the URL pattern.
* The value of the `year` GET query argument.
* The value of the ``year`` argument captured in the URL pattern.
* The value of the ``year`` ``GET`` query argument.
Raises a 404 if no valid year specification can be found.
@@ -87,8 +87,8 @@ MonthMixin
Tries the following sources, in order:
* The value of the :attr:`MonthMixin.month` attribute.
* The value of the `month` argument captured in the URL pattern.
* The value of the `month` GET query argument.
* The value of the ``month`` argument captured in the URL pattern.
* The value of the ``month`` ``GET`` query argument.
Raises a 404 if no valid month specification can be found.
@@ -139,8 +139,8 @@ DayMixin
Tries the following sources, in order:
* The value of the :attr:`DayMixin.day` attribute.
* The value of the `day` argument captured in the URL pattern.
* The value of the `day` GET query argument.
* The value of the ``day`` argument captured in the URL pattern.
* The value of the ``day`` ``GET`` query argument.
Raises a 404 if no valid day specification can be found.
@@ -192,8 +192,8 @@ WeekMixin
Tries the following sources, in order:
* The value of the :attr:`WeekMixin.week` attribute.
* The value of the `week` argument captured in the URL pattern
* The value of the `week` GET query argument.
* The value of the ``week`` argument captured in the URL pattern
* The value of the ``week`` ``GET`` query argument.
Raises a 404 if no valid week specification can be found.

View File

@@ -63,7 +63,7 @@ SingleObjectMixin
this view will display. By default, :meth:`get_queryset` returns the
value of the :attr:`queryset` attribute if it is set, otherwise
it constructs a :class:`~django.db.models.query.QuerySet` by calling
the `all()` method on the :attr:`model` attribute's default manager.
the ``all()`` method on the :attr:`model` attribute's default manager.
.. method:: get_context_object_name(obj)