mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-25 18:44:23 +00:00
Runtime error fix
This commit is contained in:
parent
ca3b7fda5a
commit
2ef5a4d37b
@ -927,6 +927,7 @@ class InvoiceCallView(CounterAdminTabsMixin, TemplateView):
|
|||||||
start_date = datetime.strptime(self.request.GET['month'], '%Y-%m')
|
start_date = datetime.strptime(self.request.GET['month'], '%Y-%m')
|
||||||
except:
|
except:
|
||||||
start_date = datetime(year=timezone.now().year, month=(timezone.now().month+10)%12+1, day=1)
|
start_date = datetime(year=timezone.now().year, month=(timezone.now().month+10)%12+1, day=1)
|
||||||
|
start_date = start_date.replace(tzinfo=pytz.UTC)
|
||||||
end_date = (start_date + timedelta(days=32)).replace(day=1, hour=0, minute=0, microsecond=0)
|
end_date = (start_date + timedelta(days=32)).replace(day=1, hour=0, minute=0, microsecond=0)
|
||||||
from django.db.models import Sum, Case, When, F, DecimalField
|
from django.db.models import Sum, Case, When, F, DecimalField
|
||||||
kwargs['start_date'] = start_date
|
kwargs['start_date'] = start_date
|
||||||
|
Loading…
Reference in New Issue
Block a user