from __future__ import unicode_literals

from django.contrib.auth.models import User

from rest_framework import serializers


class NestedUserSerializer(serializers.ModelSerializer):

    class Meta:
        model = User
        fields = ['id', 'username']
