Skip to content

Commit

Permalink
removed duplicate create
Browse files Browse the repository at this point in the history
  • Loading branch information
xamrm3 authored Jul 20, 2024
1 parent 0359cb5 commit c7896d4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions backend/accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ def post(self, request):
if serializer.is_valid():
serializer.save()

user_profile = UserProfile.objects.create(user=serializer.instance)

user_profile = UserProfile.objects.create(user=serializer.instance)
return Response({'message': 'User creation successful'}, status=status.HTTP_201_CREATED)

Expand Down

0 comments on commit c7896d4

Please sign in to comment.