~ubuntu-branches/debian/sid/python-django/sid

« back to all changes in this revision

Viewing changes to docs/ref/class-based-views/mixins-multiple-object.txt

  • Committer: Package Import Robot
  • Author(s): Luke Faraone
  • Date: 2014-04-21 16:47:14 UTC
  • mfrom: (1.3.14)
  • Revision ID: package-import@ubuntu.com-20140421164714-3mlvyr7y1ssdo9e6
Tags: 1.6.3-1
* New upstream security release.
  - Unexpected code execution using ``reverse()``
  - CVE-2014-0472
  - Caching of anonymous pages could reveal CSRF token
  - CVE-2014-0473
  - MySQL typecasting could result in unexpected matches
  - CVE-2014-0474
* Drop patches 07_translation_encoding_fix and ticket21869.diff; merged
  upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
        the list of data that this view is manipulating. If
149
149
        ``object_list`` is a queryset of Django objects and
150
150
        :attr:`context_object_name` is not set,
151
 
        the context name will be the ``object_name`` of the model that
 
151
        the context name will be the ``model_name`` of the model that
152
152
        the queryset is composed from, with postfix ``'_list'``
153
153
        appended. For example, the model ``Article`` would have a
154
154
        context object named ``article_list``.
204
204
        Returns a list of candidate template names. Returns the following list:
205
205
 
206
206
        * the value of ``template_name`` on the view (if provided)
207
 
        * ``<app_label>/<object_name><template_name_suffix>.html``
 
207
        * ``<app_label>/<model_name><template_name_suffix>.html``