text: from rest_framework import serializers
  from django.contrib.auth.models import User
  
  
  class CreateUserSerializer(serializers.ModelSerializer):
      class Meta:
          model = User
          fields = ("username", "password", "email")
  
  
  class UserSerializer(serializers.ModelSerializer):
      class Meta:
          model = User
          fields = "__all__"
  
  
  class UserNameSerializer(serializers.ModelSerializer):
      class Meta:
          model = User
          fields = ("username", )
  