11 lines
235 B
Python
11 lines
235 B
Python
![]() |
from rest_framework import serializers
|
||
|
|
||
![]() |
from apps.permission.models import UserProfile
|
||
![]() |
|
||
|
|
||
|
class GetUserInfoSerializer(serializers.ModelSerializer):
|
||
|
class Meta:
|
||
|
model = UserProfile
|
||
|
fields = (
|
||
|
'username',)
|