Skip to content

Commit

Permalink
feat: syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
rb-25 committed May 1, 2024
1 parent 1421228 commit 0a613c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gibspons/spons_app/views/sponsorship.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def patch(request,sponsor_id):
return Response({'detail':'Permission denied'},status=status.HTTP_401_UNAUTHORIZED)

if any(serializer.validated_data.get(key) for key in ['money_donated', 'additional','type_of_sponsorship']) and serializer.validated_data['status']!='Accepted':
return Response({'detail':'Status must be accepted for this action'},status=status.HTTP_401_UNAUTHORIZED))
return Response({'detail':'Status must be accepted for this action'},status=status.HTTP_401_UNAUTHORIZED)

serializer.save()
return Response(serializer.data,status=status.HTTP_200_OK)
Expand Down

0 comments on commit 0a613c2

Please sign in to comment.