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
2020
PPL-C
DTB-Layanan Fasilitas Publik Penyandang Disabilitas
PoiPoLeGan-PPLapanganTembak-DTB Layanan Fasilitas Publik Penyandang Disabilitas-BE
Commits
c8ab001a
Commit
c8ab001a
authored
Apr 17, 2020
by
Bimo Iman Smartadi
Browse files
[REFACTOR] deleted commented line
parent
1d6f9bc6
Pipeline
#40899
passed with stages
in 4 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
new_rest_api/views.py
View file @
c8ab001a
...
...
@@ -29,7 +29,6 @@ def user_list(request):
"name"
:
user
.
user
.
last_name
,
"email"
:
user
.
user
.
email
,
"phone_number"
:
user
.
phone_number
})
#serializer = UserSerializer(user_list, many=True)
return
JsonResponse
(
json_return
,
safe
=
False
)
else
:
return
JsonResponse
({
'response'
:
'try get request instead'
},
status
=
400
)
...
...
@@ -63,4 +62,4 @@ def register_user(request):
return
JsonResponse
({
'response'
:
'User created'
,
'email'
:
email
,
'name'
:
name
},
status
=
201
)
except
KeyError
as
e
:
return
JsonResponse
({
'response'
:
'bad request. {} key needed'
.
format
(
str
(
e
))},
status
=
500
)
# Create your views here.
\ No newline at end of file
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