OpenSlides/openslides/users/serializers.py
2015-01-17 08:51:57 +01:00

16 lines
313 B
Python

from rest_framework import serializers
from .models import User
class UserSerializer(serializers.ModelSerializer):
"""
Serializer for a users.models.User objects.
"""
class Meta:
model = User
fields = (
'username',
'first_name',
'last_name')