year = date.today() - timedelta(days=365)
this_year = date.today().replace(month=1, day=1)
this_month = date.today().replace(day=1)
last_month = (date.today() - timedelta(days=30)).replace(day=1)
year = date.today() - timedelta(days=365)
this_year = date.today().replace(month=1, day=1)
this_month = date.today().replace(day=1)
last_month = (date.today() - timedelta(days=30)).replace(day=1)