from rest_framework.serializers import Serializer, CharField class ChangePasswordSerializer(Serializer): current_password = CharField() new_password = CharField()