Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-CloudComputing-E
/
E_Team_KhuBox
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
김대연
2020-06-08 16:45:58 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
서승완
2020-06-10 03:27:05 +0900
Commit
7233c74cf75568ed56fe5e901ecf61ae987c9107
7233c74c
1 parent
0dd7c838
url 수정
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
4 deletions
khubox-api/user/models.py
khubox-api/user/serializers.py
khubox-api/user/urls.py
khubox-api/user/models.py
View file @
7233c74
...
...
@@ -34,7 +34,6 @@ class UserManager(BaseUserManager):
date_of_birth
=
date_of_birth
,
name
=
"True"
,
)
#user.is_staff = True
user
.
is_admin
=
True
user
.
save
(
using
=
self
.
_db
)
return
user
...
...
khubox-api/user/serializers.py
View file @
7233c74
...
...
@@ -64,5 +64,3 @@ class UpdateUserSerializer(serializers.ModelSerializer):
return
instance
class
GroupSerializer
(
serializers
.
HyperlinkedModelSerializer
):
class
Meta
\ No newline at end of file
...
...
khubox-api/user/urls.py
View file @
7233c74
...
...
@@ -13,6 +13,6 @@ urlpatterns =[
url
(
"^user/$"
,
UserAPI
.
as_view
()),
url
(
"^update/$"
,
UserUpdateAPI
.
as_view
()),
url
(
"^userlist/$"
,
UserListAPI
.
as_view
()),
url
(
""
,
include
(
"knox.urls"
)),
url
(
""
,
include
(
"knox.urls"
)),
#logout/ url접속시 로그아웃
]
...
...
Please
register
or
login
to post a comment