Changeset 6161
- Timestamp:
- 09/13/07 23:15:55 (1 year ago)
- Files:
-
- django/trunk/docs/generic_views.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/generic_views.txt
r6157 r6161 202 202 default, this is ``False``. 203 203 204 * ``template_object_name``: Designates the name of the template variable 205 to use in the template context. By default, this is ``'latest'``. 204 * **New in Django development version:** ``template_object_name``: 205 Designates the name of the template variable to use in the template 206 context. By default, this is ``'latest'``. 206 207 207 208 **Template name:** … … 228 229 * ``latest``: The ``num_latest`` objects in the system, ordered descending 229 230 by ``date_field``. For example, if ``num_latest`` is ``10``, then 230 ``latest`` will be a list of the latest 10 objects in ``queryset``. This 231 variable's name depends on the ``template_object_name`` parameter, which 232 is ``'latest'`` by default. If ``template_object_name`` is ``'foo'``, 233 this variable's name will be ``foo``. 231 ``latest`` will be a list of the latest 10 objects in ``queryset``. 232 233 **New in Django development version:** This variable's name depends on 234 the ``template_object_name`` parameter, which is ``'latest'`` by default. 235 If ``template_object_name`` is ``'foo'``, this variable's name will be 236 ``foo``. 234 237 235 238 .. _RequestContext docs: ../templates_python/#subclassing-context-requestcontext
