Browse Source

fix delete

master
alireza 1 year ago
parent
commit
ca919d2d5c
  1. 5
      apps/transaction/views.py

5
apps/transaction/views.py

@ -114,7 +114,10 @@ class SoftDeleteTransactionParticipantView(APIView):
"message": "Transaction participant successfully marked as deleted"
}, status=status.HTTP_200_OK)
else:
return AppAPIException({'message': "You don't have permission to delete this transaction"}, status_code=status.HTTP_403_FORBIDDEN)
raise AppAPIException(
detail={'message': "You don't have permission to delete this transaction"},
status_code=status.HTTP_403_FORBIDDEN
)
except TransactionParticipant.DoesNotExist:
return AppAPIException({'message': "Transaction participant not found"})
Loading…
Cancel
Save