serializers
MyTokenObtainPairSerializer
Bases: TokenObtainPairSerializer
Source code in users/serializers.py
18 19 20 21 22 23 24 25 26 27 28 29 |
|
get_token(user)
classmethod
Source code in users/serializers.py
19 20 21 22 23 24 25 26 27 28 29 |
|
ShortUserSerializer
Bases: serializers.ModelSerializer
Source code in users/serializers.py
12 13 14 15 |
|
Meta
Source code in users/serializers.py
13 14 15 |
|
fields = ['username', 'id']
class-attribute
model = User
class-attribute
UserSerializer
Bases: serializers.HyperlinkedModelSerializer
Source code in users/serializers.py
6 7 8 9 |
|
Meta
Source code in users/serializers.py
7 8 9 |
|