MCPcopy
hub / github.com/django/django / get_allow_empty

Method get_allow_empty

django/views/generic/list.py:106–111  ·  view source on GitHub ↗

Return ``True`` if the view should display empty lists and ``False`` if a 404 should be raised instead.

(self)

Source from the content-addressed store, hash-verified

104 return self.paginate_orphans
105
106 def get_allow_empty(self):
107 """
108 Return ``True`` if the view should display empty lists and ``False``
109 if a 404 should be raised instead.
110 """
111 return self.allow_empty
112
113 def get_context_object_name(self, object_list):
114 """Get the name of the item to be used in the context."""

Callers 5

paginate_querysetMethod · 0.95
getMethod · 0.80
get_dated_querysetMethod · 0.80
get_date_listMethod · 0.80
_get_next_prevFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected