-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Getting The current user using /auth//user/me and installing modheade…
…r chrome extension and setting access token
- Loading branch information
1 parent
4e21364
commit 572ad9a
Showing
3 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTY4MjA1Mjk3NCwianRpIjoiOWE0N2RhNjJiMzA3NGE2Mzk1MmE3MTViZmNmMWIwZjciLCJ1c2VyX2lkIjo0fQ.fgQNVp9gzgNMZjTNR_se3Jt_6tGsE-OsrQTIlAgaSV0 | ||
|
||
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjgyMDYxOTI1LCJqdGkiOiIwNjAxNDM3NDZhMWY0ZDg5YWRlYTczZTQyYTg5NmRjMiIsInVzZXJfaWQiOjR9.UWi1_oOctrkoJiAWpQ4NN91dsmPzjpyxQT04g8sZWVY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
from djoser.serializers import UserCreateSerializer as BaseUserCreateSerializer | ||
from djoser.serializers import UserSerializer as BaseUserSerializer, UserCreateSerializer as BaseUserCreateSerializer | ||
|
||
class UserCreateSerializer(BaseUserCreateSerializer): | ||
class Meta(BaseUserCreateSerializer.Meta): | ||
fields = ['id', 'username', 'password','email', 'first_name', 'last_name'] | ||
fields = ['id', 'username', 'password','email', 'first_name', 'last_name'] | ||
|
||
class UserSerializer(BaseUserSerializer): | ||
class Meta(BaseUserSerializer.Meta): | ||
fields = ['id', 'username', 'email', 'first_name', 'last_name'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters