summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-08-19 12:06:07 -0400
committerTim Graham <timograham@gmail.com>2014-08-19 12:09:22 -0400
commitc0e49ef767e6fd7a4d77ab625e15383948ac250d (patch)
tree41856cce4dd0169f49d907fc76ae3cc975d64135 /docs/ref
parent18f25efc9ec18e6d5c0ceada2b0349b7117beb77 (diff)
[1.6.x] Fixed #21801 -- Documented SingleObjectMixin.get_context_data() requires the object attribute.
Backport of 03c1609c47 from master
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/class-based-views/mixins-single-object.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/class-based-views/mixins-single-object.txt b/docs/ref/class-based-views/mixins-single-object.txt
index 552cebca06..a28690afce 100644
--- a/docs/ref/class-based-views/mixins-single-object.txt
+++ b/docs/ref/class-based-views/mixins-single-object.txt
@@ -73,6 +73,10 @@ SingleObjectMixin
Returns context data for displaying the list of objects.
+ The base implementation of this method requires that the ``object``
+ attribute be set by the view (even if ``None``). Be sure to do this if
+ you are using this mixin without one of the built-in views that does so.
+
.. method:: get_slug_field()
Returns the name of a slug field to be used to look up by slug. By