Fakultas Ilmu Komputer UI

Commit 232883df authored by Muzaki Azami's avatar Muzaki Azami
Browse files

Merge branch 'linking-customuser-nutritionist' into 'staging'

Linking customuser and nutritionist while linking customuser and cart

See merge request !66
parents fbb27506 a8da2591
Pipeline #77350 passed with stages
in 22 minutes and 13 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