Skip to content

Commit

Permalink
Added 'New in Django development version' note to docs/generic_views.…
Browse files Browse the repository at this point in the history
…txt change from [6157]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6161 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Sep 14, 2007
1 parent 6767849 commit 4d25f86
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docs/generic_views.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ a date in the *future* are not included unless you set ``allow_future`` to
specified in ``date_field`` is greater than the current date/time. By specified in ``date_field`` is greater than the current date/time. By
default, this is ``False``. default, this is ``False``.


* ``template_object_name``: Designates the name of the template variable * **New in Django development version:** ``template_object_name``:
to use in the template context. By default, this is ``'latest'``. Designates the name of the template variable to use in the template
context. By default, this is ``'latest'``.


**Template name:** **Template name:**


Expand All @@ -227,10 +228,12 @@ In addition to ``extra_context``, the template's context will be:


* ``latest``: The ``num_latest`` objects in the system, ordered descending * ``latest``: The ``num_latest`` objects in the system, ordered descending
by ``date_field``. For example, if ``num_latest`` is ``10``, then by ``date_field``. For example, if ``num_latest`` is ``10``, then
``latest`` will be a list of the latest 10 objects in ``queryset``. This ``latest`` will be a list of the latest 10 objects in ``queryset``.
variable's name depends on the ``template_object_name`` parameter, which
is ``'latest'`` by default. If ``template_object_name`` is ``'foo'``, **New in Django development version:** This variable's name depends on
this variable's name will be ``foo``. the ``template_object_name`` parameter, which is ``'latest'`` by default.
If ``template_object_name`` is ``'foo'``, this variable's name will be
``foo``.


.. _RequestContext docs: ../templates_python/#subclassing-context-requestcontext .. _RequestContext docs: ../templates_python/#subclassing-context-requestcontext


Expand Down

0 comments on commit 4d25f86

Please sign in to comment.