Fakultas Ilmu Komputer UI

Commit a8da2591 authored by Muzaki Azami's avatar Muzaki Azami
Browse files

Linking customuser and nutritionist while linking customuser and cart

parent fbb27506
......@@ -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