Merge pull request 'master' (#357) from master into django_4

Reviewed-on: SGD-Nord/konova#357
This commit is contained in:
2023-11-21 13:38:18 +01:00
10 changed files with 111 additions and 33 deletions

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(