diff options
| author | Tim Graham <timograham@gmail.com> | 2014-08-19 12:06:07 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-08-19 12:07:44 -0400 |
| commit | 03c1609c473e14063bcea02dec248095d9c10579 (patch) | |
| tree | c5af5802894c12854530cbd2ba240fb06f6c5fc1 /docs/ref/class-based-views | |
| parent | 54164b814cab71a8a0503743befbdcc99ae6c7a0 (diff) | |
Fixed #21801 -- Documented SingleObjectMixin.get_context_data() requires the object attribute.
Diffstat (limited to 'docs/ref/class-based-views')
| -rw-r--r-- | docs/ref/class-based-views/mixins-single-object.txt | 4 |
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 9a67e78fad..39f0516669 100644 --- a/docs/ref/class-based-views/mixins-single-object.txt +++ b/docs/ref/class-based-views/mixins-single-object.txt @@ -81,6 +81,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 |
