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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.