diff --git a/analysis/utils/report.py b/analysis/utils/report.py index 3bfd6370..960ca2cc 100644 --- a/analysis/utils/report.py +++ b/analysis/utils/report.py @@ -64,8 +64,8 @@ class TimespanReport: responsible__conservation_office__id=id, legal__registration_date__gt=LKOMPVZVO_PUBLISH_DATE, deleted=None, - created__timestamp__gte=date_from, - created__timestamp__lte=date_to, + created__timestamp__date__gte=date_from, + created__timestamp__date__lte=date_to, ) self.queryset_checked = self.queryset.filter( checked__isnull=False @@ -231,8 +231,8 @@ class TimespanReport: intervention__responsible__conservation_office__id=id, intervention__legal__registration_date__gt=LKOMPVZVO_PUBLISH_DATE, deleted=None, - intervention__created__timestamp__gte=date_from, - intervention__created__timestamp__lte=date_to, + intervention__created__date__timestamp__gte=date_from, + intervention__created__date__timestamp__lte=date_to, ) self.queryset_checked = self.queryset.filter( intervention__checked__isnull=False @@ -400,8 +400,8 @@ class TimespanReport: self.queryset = EcoAccount.objects.filter( responsible__conservation_office__id=id, deleted=None, - created__timestamp__gte=date_from, - created__timestamp__lte=date_to, + created__timestamp__date__gte=date_from, + created__timestamp__date__lte=date_to, ) self.queryset_recorded = self.queryset.filter( recorded__isnull=False @@ -479,8 +479,8 @@ class TimespanReport: legal__registration_date__lte=LKOMPVZVO_PUBLISH_DATE, responsible__conservation_office__id=id, deleted=None, - created__timestamp__gte=date_from, - created__timestamp__lte=date_to, + created__timestamp__date__gte=date_from, + created__timestamp__date__lte=date_to, ) self.queryset_intervention_recorded = self.queryset_intervention.filter( recorded__isnull=False diff --git a/compensation/models/compensation.py b/compensation/models/compensation.py index 703f7cd4..65a62b6e 100644 --- a/compensation/models/compensation.py +++ b/compensation/models/compensation.py @@ -170,7 +170,7 @@ class AbstractCompensation(BaseObject, GeoReferencedMixin): """ if not self.is_shared_with(request.user): messages.info(request, DATA_UNSHARED_EXPLANATION) - request = self._set_geometry_conflict_message(request) + request = self.set_geometry_conflict_message(request) return request diff --git a/compensation/templates/compensation/detail/compensation/view.html b/compensation/templates/compensation/detail/compensation/view.html index 581bf799..c210986a 100644 --- a/compensation/templates/compensation/detail/compensation/view.html +++ b/compensation/templates/compensation/detail/compensation/view.html @@ -110,7 +110,10 @@ {% include 'map/geom_form.html' %}
{% trans 'Kreis' %} | +{% trans 'Gemarkung' %} | +{% trans 'Parcel' %} | +{% trans 'Parcel counter' %} | +{% trans 'Parcel number' %} | +
---|---|---|---|---|
{{parcel.district.krs|default_if_none:"-"}} | +{{parcel.gmrkng|default_if_none:"-"}} | +{{parcel.flr|default_if_none:"-"}} | +{{parcel.flrstck_zhlr|default_if_none:"-"}} | +{{parcel.flrstck_nnr|default_if_none:"-"}} | +