views.generic.list.MultipleObjectMixin.get_allow_empty()

get_allow_empty()

Return a boolean specifying whether to display the page if no objects are available. If this method returns False and no objects are available, the view will raise a 404 instead of displaying an empty page. By default, this is True.

doc_Django
2016-10-09 18:41:11
Comments
Leave a Comment

Please login to continue.