from rest_framework import serializers
from django.contrib.auth.models import User


class UserSerializer(serializers.ModelSerializer):
    """
    UserSerializer

    Handles the serialization of the `User` models.abs

    The fields to be serialized are:
    - username
    - password
    """

    class Meta:
        model = User
        fields = ('username', 'password')
