MCPcopy
hub / github.com/django/django / get_date_field

Method get_date_field

django/views/generic/dates.py:241–247  ·  view source on GitHub ↗

Get the name of the date field to be used to filter by.

(self)

Source from the content-addressed store, hash-verified

239 allow_future = False
240
241 def get_date_field(self):
242 """Get the name of the date field to be used to filter by."""
243 if self.date_field is None:
244 raise ImproperlyConfigured(
245 "%s.date_field is required." % self.__class__.__name__
246 )
247 return self.date_field
248
249 def get_allow_future(self):
250 """

Callers 9

uses_datetime_fieldMethod · 0.95
get_orderingMethod · 0.80
get_dated_querysetMethod · 0.80
get_date_listMethod · 0.80
get_dated_itemsMethod · 0.80
get_dated_itemsMethod · 0.80
get_dated_itemsMethod · 0.80
_get_next_prevFunction · 0.80

Calls 1

Tested by

no test coverage detected