Skip to content

Commit

Permalink
fix: fixup backend
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed Nov 18, 2024
1 parent 3b97428 commit 0c60c62
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions backend/benefit/applications/api/v1/serializers/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -1422,9 +1422,9 @@ def _update_de_minimis_aid(self, application, de_minimis_data):

for idx, aid_item in enumerate(serializer.validated_data):
aid_item["application_id"] = application.pk
aid_item["ordering"] = (
idx # use the ordering defined in the JSON sent by the client
)
aid_item[
"ordering"
] = idx # use the ordering defined in the JSON sent by the client

de_minimis_list = serializer.save()
for de_minimis in de_minimis_list:
Expand Down Expand Up @@ -1837,9 +1837,9 @@ def _common_ordered_nested_update(self, application, serializer):
)
for idx, nested_object in enumerate(serializer.validated_data):
nested_object["application_id"] = application.pk
nested_object["ordering"] = (
idx # use the ordering defined in the JSON sent by the client
)
nested_object[
"ordering"
] = idx # use the ordering defined in the JSON sent by the client
serializer.save()
if hasattr(application, "calculation"):
call_now_or_later(
Expand Down

0 comments on commit 0c60c62

Please sign in to comment.