class documentation
class DateMixin: (source)
Known subclasses: django.views.generic.dates.BaseDateDetailView
, django.views.generic.dates.BaseDateListView
Mixin class for views manipulating date-based data.
Method | get |
Return `True` if the view should be allowed to display objects from the future. |
Method | get |
Get the name of the date field to be used to filter by. |
Class Variable | allow |
Undocumented |
Class Variable | date |
Undocumented |
Property | uses |
Return `True` if the date field is a `DateTimeField` and `False` if it's a `DateField`. |
Method | _make |
Convert a date into a datetime when the date field is a DateTimeField. |
Method | _make |
Get the lookup kwargs for filtering on a single date. |