Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ppl-fasilkom-ui
2021
Kelas D
PT Gizi Sehat - Dietela
Dietela Backend
Commits
a8da2591
Commit
a8da2591
authored
May 17, 2021
by
Muzaki Azami
Browse files
Linking customuser and nutritionist while linking customuser and cart
parent
fbb27506
Changes
1
Hide whitespace changes
Inline
Side-by-side
authentication/views.py
View file @
a8da2591
...
...
@@ -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
user
.
save
()
cart
.
user
=
user
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment