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
PMPL
Class Project
Kape
Commits
434dc67a
Commit
434dc67a
authored
Dec 06, 2019
by
KIANUTAMA RADIANUR HUDHA
Browse files
fix backend issue not changing name when trying to update name
parent
730dad0d
Pipeline
#26774
passed with stages
in 27 minutes and 47 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
core/views/accounts/company.py
View file @
434dc67a
...
...
@@ -22,6 +22,10 @@ class CompanyViewSet(viewsets.ModelViewSet):
---
"""
user
=
self
.
get_object
()
if
'name'
in
request
.
data
:
user
.
user
.
first_name
=
request
.
data
[
'name'
]
serializer
=
self
.
serializer_class
(
user
,
data
=
request
.
data
,
partial
=
True
)
if
serializer
.
is_valid
():
...
...
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