Ticket #21801: 21801.diff

File 21801.diff, 725 bytes (added by Tim Graham, 10 years ago)
  • docs/ref/class-based-views/mixins-single-object.txt

    diff --git a/docs/ref/class-based-views/mixins-single-object.txt b/docs/ref/class-based-views/mixins-single-object.txt
    index 9a67e78..39f0516 100644
    a b SingleObjectMixin  
    8181
    8282        Returns context data for displaying the list of objects.
    8383
     84        The base implementation of this method requires that the ``object``
     85        attribute be set by the view (even if ``None``). Be sure to do this if
     86        you are using this mixin without one of the built-in views that does so.
     87
    8488    .. method:: get_slug_field()
    8589
    8690        Returns the name of a slug field to be used to look up by slug. By
Back to Top