old_contents: from rest_framework import serializers
  
  from maker.models import Maker
  
  
  class RegistrationRequestSerializer(serializers.Serializer):
  
      identifier = serializers.CharField(required=True)
      password = serializers.CharField(required=True)
      first_name = serializers.CharField(required=True)
      last_name = serializers.CharField(required=True)
      email = serializers.EmailField(required=True)
  
  
  class AuthenticationResponseSerializer(serializers.Serializer):
  
      token = serializers.CharField()
  
  
  class AuthenticationRequestSerializer(serializers.Serializer):
  
      identifier = serializers.CharField(required=True)
      password = serializers.CharField(required=True)
  
  
  class MakerUpdateSerializer(serializers.ModelSerializer):
  
      class Meta:
          model = Maker
          fields = ('first_name', 'last_name', 'email', 'photo_url', 'bio')
  
  
  class MakerReadSerializer(serializers.ModelSerializer):
  
      class Meta:
          model = Maker
          fields = ('identifier', 'first_name', 'last_name', 'email',
                      'photo_url' 'bio')
  
new_contents: from rest_framework import serializers
  
  from maker.models import Maker
  
  
  class RegistrationRequestSerializer(serializers.Serializer):
  
      identifier = serializers.CharField(required=True)
      password = serializers.CharField(required=True)
      first_name = serializers.CharField(required=True)
      last_name = serializers.CharField(required=True)
      email = serializers.EmailField(required=True)
  
  
  class AuthenticationResponseSerializer(serializers.Serializer):
  
      token = serializers.CharField()
  
  
  class AuthenticationRequestSerializer(serializers.Serializer):
  
      identifier = serializers.CharField(required=True)
      password = serializers.CharField(required=True)
  
  
  class MakerReadSerializer(serializers.ModelSerializer):
  
      class Meta:
          model = Maker
          fields = ('identifier', 'first_name', 'last_name', 'email',
                      'photo_url' 'bio')
  
  
  class MakerUpdateSerializer(serializers.ModelSerializer):
  
      class Meta:
          model = Maker
          fields = ('first_name', 'last_name', 'email', 'photo_url', 'bio')
  
  
  class MakerPasswordSerializer(serializers.Serializer):
  
      password = serializers.CharField(required=True)
      new_password = serializers.CharField(required=True)
      confirm_password = serializers.CharField(required=True)
  
      def validate(self, attrs):
          if attrs['new_password'] != attrs['confirm_password']:
              raise serializers.ValidationError("'new_password' and 'confirm_password' do not match")
          return attrs
  
subject: Add serializer