forked from uncloud/uncloud
8 lines
234 B
Python
8 lines
234 B
Python
from django.contrib.auth import get_user_model
|
|
|
|
from rest_framework import serializers
|
|
|
|
class UserSerializer(serializers.ModelSerializer):
|
|
class Meta:
|
|
model = get_user_model()
|
|
fields = ['url', 'username', 'email']
|