django_4 #358

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

View File

@@ -175,7 +175,7 @@ class EditEcoAccountForm(NewEcoAccountForm):
def is_valid(self):
valid = super().is_valid()
deductable_surface = self.cleaned_data.get("surface")
deductable_surface = self.cleaned_data.get("surface") or 0.0
deduction_surface_sum = self.instance.get_deductions_surface()
if deductable_surface < deduction_surface_sum:
self.add_error(