Skip to content

Commit

Permalink
Merge pull request #48 from SheCodesAus/bug-fix/image-field
Browse files Browse the repository at this point in the history
fix: user field in eoi
  • Loading branch information
suanTech committed Apr 4, 2024
2 parents 18e5412 + 3c0e8c9 commit da7d869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exception_al/eoi/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def get(self, request):
def post(self, request):
serializer = EoiSerializer(data=request.data)
if serializer.is_valid():
serializer.save(owner=request.user)
serializer.save(user=request.user)
return Response(serializer.data)
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)

Expand Down

0 comments on commit da7d869

Please sign in to comment.