diff --git a/shynet/dashboard/mixins.py b/shynet/dashboard/mixins.py index a078c38..cf44b30 100644 --- a/shynet/dashboard/mixins.py +++ b/shynet/dashboard/mixins.py @@ -45,6 +45,13 @@ class DateRangeMixin: "start": now.replace(day=1), "end": now, }, + { + "name": "Last month", + "start": (now.replace(day=1) - timezone.timedelta(days=1)).replace( + day=1 + ), + "end": now.replace(day=1) - timezone.timedelta(days=1), + }, { "name": "This year", "start": now.replace(day=1, month=1),