MCPcopy
hub / github.com/django/django / get_previous_year

Method get_previous_year

django/views/generic/dates.py:51–53  ·  view source on GitHub ↗

Get the previous valid year.

(self, date)

Source from the content-addressed store, hash-verified

49 return _get_next_prev(self, date, is_previous=False, period="year")
50
51 def get_previous_year(self, date):
52 """Get the previous valid year."""
53 return _get_next_prev(self, date, is_previous=True, period="year")
54
55 def _get_next_year(self, date):
56 """

Callers 1

get_dated_itemsMethod · 0.80

Calls 1

_get_next_prevFunction · 0.85

Tested by

no test coverage detected