* fixes bug where report creation would fail
This commit is contained in:
mpeltriaux 2022-01-19 14:13:25 +01:00
parent aba523f31e
commit 155f4ff304

View File

@ -231,8 +231,8 @@ class TimespanReport:
intervention__responsible__conservation_office__id=id, intervention__responsible__conservation_office__id=id,
intervention__legal__registration_date__gt=LKOMPVZVO_PUBLISH_DATE, intervention__legal__registration_date__gt=LKOMPVZVO_PUBLISH_DATE,
deleted=None, deleted=None,
intervention__created__date__timestamp__gte=date_from, intervention__created__timestamp__date__gte=date_from,
intervention__created__date__timestamp__lte=date_to, intervention__created__timestamp__date__lte=date_to,
) )
self.queryset_checked = self.queryset.filter( self.queryset_checked = self.queryset.filter(
intervention__checked__isnull=False intervention__checked__isnull=False