Ticket #16394: 16394.diff

File 16394.diff, 741 bytes (added by Aymeric Augustin, 13 years ago)
  • docs/ref/class-based-views.txt

     
    775775    .. attribute:: allow_empty
    776776
    777777        A boolean specifying whether to display the page if no objects are
    778         available. If this is ``False`` and no objects are available, the view
    779         will raise a 404 instead of displaying an empty page. By default, this
    780         is ``True``.
     778        available. If this is ``True`` and no objects are available, the view
     779        will display an empty page instead of raising a 404. By default, this
     780        is ``False``.
    781781
    782782    .. method:: get_dated_items():
    783783
Back to Top