<filename>users/serializers.py<gh_stars>0
from .models import CustomUser



class UserSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = CustomUser
        fields = ['url', 'username', 'email', 'is_staff']