9 lines
No EOL
429 B
Python
9 lines
No EOL
429 B
Python
from rest_framework.serializers import ModelSerializer
|
|
from apps.users.models import User
|
|
|
|
class UserSerializer(ModelSerializer):
|
|
|
|
class Meta:
|
|
model = User
|
|
fields = ['id', 'uuid', 'email_address', 'first_name', 'last_name', 'bio', 'timezone', 'avatar_url', 'is_manager', 'date_of_birth', 'created_at', 'updated_at', 'is_staff']
|
|
read_only_fields = ['id', 'uuid', 'created_at', 'updated_at', 'is_staff'] |