uncloud-mravi/uncloud/uncloud_api/serializers.py
Nico Schottelius aa59b05a2d cleanup urls
2020-02-27 11:40:36 +01:00

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']