* adds NewEcoAccountForm
* refactors NewCompensationForm into AbstractCompensationForm so main fields can be reused again
* fixes template bug in account detail view where the amount of deductions has been displayed instead of the available rest
* refactors _generate_new_identifier() into generate_new_identifier()
* refactors get_available_rest() into returning both, the total and relative amount
* improves saving of SimpleGeometryForm()
* adds/updates translations
This commit is contained in:
mipel
2021-10-05 16:35:24 +02:00
parent 46e1a9af86
commit d84fe68120
16 changed files with 416 additions and 174 deletions

View File

@@ -97,9 +97,9 @@ def new_id_view(request: HttpRequest):
"""
tmp_intervention = Intervention()
identifier = tmp_intervention._generate_new_identifier()
identifier = tmp_intervention.generate_new_identifier()
while Intervention.objects.filter(identifier=identifier).exists():
identifier = tmp_intervention._generate_new_identifier()
identifier = tmp_intervention.generate_new_identifier()
return JsonResponse(
data={
"identifier": identifier