views.generic.dates.YearMixin.get_previous_year()

get_previous_year(date) [source]

Returns a date object containing the first day of the year before the date provided. This function can also return None or raise an Http404 exception, depending on the values of allow_empty and allow_future.

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

Please login to continue.