Skip to content

Commit

Permalink
Fix: change details to error_code
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem committed Jan 22, 2025
1 parent 7968373 commit 59c8040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/fsm/views/registration_receipt_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def confirm_registration(self, request, pk=None):

if receipt.status != RegistrationReceipt.RegistrationStatus.Accepted:
return Response(
{'detail': 'REGISTRATION_NOT_ACCEPTED'},
{'error_code': 'REGISTRATION_NOT_ACCEPTED'},
status=status.HTTP_400_BAD_REQUEST
)

Expand Down

0 comments on commit 59c8040

Please sign in to comment.