django_4 #358

Merged
mpeltriaux merged 14 commits from django_4 into Docker_django_4 2023-11-21 14:05:18 +01:00
Showing only changes of commit 599764ef38 - Show all commits

View File

@ -490,7 +490,11 @@ class Compensation(AbstractCompensation, CEFMixin, CoherenceMixin, PikMixin):
if self.is_recorded:
retval = COMPENSATION_LANIS_LAYER_NAME_RECORDED
else:
is_old_entry = self.intervention.legal.binding_date < LKOMPVZVO_PUBLISH_DATE
try:
is_old_entry = self.intervention.legal.binding_date < LKOMPVZVO_PUBLISH_DATE
except TypeError:
is_old_entry = True
if is_old_entry:
retval = COMPENSATION_LANIS_LAYER_NAME_UNRECORDED_OLD_ENTRY
else: