Change stats years to 2000 up to current year
This commit is contained in:
parent
13b750ca92
commit
270a291f05
|
@ -32,7 +32,12 @@ def model_counts(request):
|
|||
|
||||
|
||||
def stats_dropdown_year_range(request):
|
||||
return {"stats_dropdown_year_range": range(2018, 2024)}
|
||||
result = {
|
||||
"stats_dropdown_year_range": range(
|
||||
datetime.now(ZoneInfo(settings.TIME_ZONE)).year, 1999, -1
|
||||
)
|
||||
}
|
||||
return result
|
||||
|
||||
|
||||
def add_session(request, purchase_id=None):
|
||||
|
|
Loading…
Reference in New Issue