Fakultas Ilmu Komputer UI

Commit e00addf7 authored by Ami's avatar Ami
Browse files

linking user with cart now also links user with nutritionist

parent 119a2ea1
Pipeline #77190 passed with stages
in 12 minutes and 15 seconds
......@@ -42,6 +42,7 @@ class LinkDataViewSet(viewsets.ViewSet):
return Response({'message': 'Cart is not found.'}, status=status.HTTP_400_BAD_REQUEST)
user.diet_profile = diet_profile
user.nutritionist = cart.nutritionist
cart.user = user
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment