Fakultas Ilmu Komputer UI
Skip to content
GitLab
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
e00addf7
Commit
e00addf7
authored
May 17, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
authentication/views.py
View file @
e00addf7
...
...
@@ -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
.
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