from rest_framework import serializers

from .models import *


class CoordinatorSerializer(serializers.ModelSerializer):
    # ModelID = serializers.CharField(max_length=100, required=True)
    CourseID = serializers.CharField(max_length=100, required=True)
    FName = serializers.CharField(max_length=100, required=False)
    LName = serializers.CharField(max_length=100, required=False)
    Phone = serializers.CharField(max_length=100, required=False)
    Office = serializers.CharField(max_length=100, required=False)
    Email = serializers.CharField(max_length=100, required=False)

    def create(self, validated_data):
        # Once the request data has been validated, we can create a todo item instance in the database
        return Coordinator.objects.create(
            ModelID=validated_data.get('ModelID'),
            CourseID=validated_data.get('CourseID'),
            FName=validated_data.get('FName'),
            LName=validated_data.get('LName'),
            Phone=validated_data.get('Phone'),
            Office=validated_data.get('Office'),
            Email=validated_data.get('Email')
        )

    def update(self, instance, validated_data):
        # Once the request data has been validated, we can update the todo item instance in the database
        instance.ModelID = validated_data.get('ModelID', instance.ModelID)
        instance.CourseID = validated_data.get('CourseID', instance.CourseID)
        instance.FName = validated_data.get('FName', instance.FName)
        instance.LName = validated_data.get('LName', instance.LName)
        instance.Phone = validated_data.get('Phone', instance.Phone)
        instance.Office = validated_data.get('Office', instance.Office)
        instance.Email = validated_data.get('Email', instance.Email)
        instance.save()
        return instance

    class Meta:
        model = Coordinator
        fields = (
            'ModelID',
            'CourseID',
            'FName',
            'LName',
            'Phone',
            'Office',
            'Email'
        )


class InfoSerializer(serializers.ModelSerializer):
    # ModelID = serializers.CharField(max_length=100, required=True)
    CourseID = serializers.CharField(max_length=100, required=True)
    GradeNotes = serializers.CharField(max_length=5000, required=False)
    Examination = serializers.CharField(max_length=5000, required=False)
    CourseDescription = serializers.CharField(max_length=5000, required=False)
    UseCalc = serializers.CharField(max_length=100, required=False)

    def create(self, validated_data):
        return Info.objects.create(
            ModelID=validated_data.get('ModelID'),
            CourseID=validated_data.get('CourseID'),
            GradeNotes=validated_data.get('GradeNotes'),
            Examination=validated_data.get('Examination'),
            CourseDescription=validated_data.get('CourseDescription'),
            UseCalc=validated_data.get('UseCalc')
        )

    def update(self, instance, validated_data):
        instance.ModelID = validated_data.get('ModelID', instance.ModelID)
        instance.CourseID = validated_data.get('CourseID', instance.CourseID)
        instance.GradeNotes = validated_data.get('GradeNotes', instance.GradeNotes)
        instance.Examination = validated_data.get('Examination', instance.Examination)
        instance.CourseDescription = validated_data.get('CourseDescription', instance.CourseDescription)
        instance.UseCalc = validated_data.get('UseCalc', instance.UseCalc)
        instance.save()
        return instance

    class Meta:
        model = Info
        fields = (
            'ModelID',
            'CourseID',
            'GradeNotes',
            'Examination',
            'CourseDescription',
            'UseCalc'
        )


class GradeDeterminationSerializer(serializers.ModelSerializer):
    # ModelID = serializers.CharField(max_length=100, required=True)
    CourseID = serializers.CharField(max_length=100, required=True)
    Component = serializers.CharField(max_length=100, required=False)
    OutcomeEvaluated = serializers.CharField(max_length=100, required=False)
    Weight = serializers.IntegerField(required=False)

    def create(self, validated_data):
        # Once the request data has been validated, we can create a todo item instance in the database
        return GradeDetermination.objects.create(
            ModelID=validated_data.get('ModelID'),
            CourseID=validated_data.get('CourseID'),
            Component=validated_data.get('Component'),
            OutcomeEvaluated=validated_data.get('OutcomeEvaluated'),
            Weight=validated_data.get('Weight'),
        )

    def update(self, instance, validated_data):
        # Once the request data has been validated, we can update the todo item instance in the database
        instance.ModelID = validated_data.get('ModelID', instance.ModelID)
        instance.CourseID = validated_data.get('CourseID', instance.CourseID)
        instance.Component = validated_data.get('Component', instance.Component)
        instance.OutcomeEvaluated = validated_data.get('OutcomeEvaluated', instance.OutcomeEvaluated)
        instance.Weight = validated_data.get('Weight', instance.Weight)
        instance.save()
        return instance

    class Meta:
        model = GradeDetermination
        fields = (
            'ModelID',
            'CourseID',
            'Component',
            'OutcomeEvaluated',
            'Weight'
        )


class OutcomeSerializer(serializers.ModelSerializer):
    # ModelID = serializers.CharField(max_length=100, required=True)
    CourseID = serializers.CharField(max_length=100, required=True)
    OutcomeNum = serializers.IntegerField(required=False)  # removed max_length=100
    Description = serializers.CharField(max_length=500, required=False)  # Changed max_length to 500
    GraduateAttribute = serializers.CharField(max_length=100, required=False)
    InstructionLvl = serializers.CharField(max_length=100, required=False)

    def create(self, validated_data):
        return Outcome.objects.create(
            ModelID=validated_data.get('ModelID'),
            CourseID=validated_data.get('CourseID'),
            OutcomeNum=validated_data.get('OutcomeNum'),
            Description=validated_data.get('Description'),
            GraduateAttribute=validated_data.get('GraduateAttribute'),
            InstructionLvl=validated_data.get('InstructionLvl'),
        )

    def update(self, instance, validated_data):
        instance.ModelID = validated_data.get('ModelID', instance.ModelID)
        instance.CourseID = validated_data.get('CourseID', instance.CourseID)
        instance.OutcomeNum = validated_data.get('OutcomeNum', instance.OutcomeNum)
        instance.Description = validated_data.get('Description', instance.Description)
        instance.GraduateAttribute = validated_data.get('GraduateAttribute', instance.GraduateAttribute)
        instance.InstructionLvl = validated_data.get('InstructionLvl', instance.InstructionLvl)
        instance.save()
        return instance

    class Meta:
        model = Outcome
        fields = (
            'ModelID',
            'CourseID',
            'OutcomeNum',
            'Description',
            'GraduateAttribute',
            'InstructionLvl'
        )


class TimetableSerializer(serializers.ModelSerializer):
    # ModelID = serializers.CharField(max_length=100, required=True)
    CourseID = serializers.CharField(max_length=100, required=True)
    SectionNum = serializers.CharField(max_length=100, required=False)
    Days = serializers.CharField(max_length=100, required=False)
    Time = serializers.CharField(max_length=100, required=False)
    Location = serializers.CharField(max_length=100, required=False)

    def create(self, validated_data):
        return Timetable.objects.create(
            ModelID=validated_data.get('ModelID'),
            CourseID=validated_data.get('CourseID'),
            SectionNum=validated_data.get('SectionNum'),
            Days=validated_data.get('Days'),
            Time=validated_data.get('Time'),
            Location=validated_data.get('Location'),
        )

    def update(self, instance, validated_data):
        instance.ModelID = validated_data.get('ModelID', instance.ModelID)
        instance.CourseID = validated_data.get('CourseID', instance.CourseID)
        instance.SectionNum = validated_data.get('SectionNum', instance.SectionNum)
        instance.Days = validated_data.get('Days', instance.Days)
        instance.Time = validated_data.get('Time', instance.Time)
        instance.Location = validated_data.get('Location', instance.Location)
        instance.save()
        return instance

    class Meta:
        model = Timetable
        fields = (
            'ModelID',
            'CourseID',
            'SectionNum',
            'Days',
            'Time',
            'Location'
        )


class GradeDistributionSerializer(serializers.ModelSerializer):
    # ModelID = serializers.CharField(max_length=100, required=True)
    CourseID = serializers.CharField(max_length=100, required=True)
    LowerLimit = serializers.IntegerField(required=False)  # removed max_length = 100
    UpperLimit = serializers.IntegerField(required=False)  # removed max_length = 100
    LetterGrade = serializers.CharField(max_length=100, required=False)

    def create(self, validated_data):
        return GradeDistribution.objects.create(
            ModelID=validated_data.get('ModelID'),
            CourseID=validated_data.get('CourseID'),
            LowerLimit=validated_data.get('LowerLimit'),
            UpperLimit=validated_data.get('UpperLimit'),
            LetterGrade=validated_data.get('LetterGrade'),
        )

    def update(self, instance, validated_data):
        instance.ModelID = validated_data.get('ModelID', instance.ModelID)
        instance.CourseID = validated_data.get('CourseID', instance.CourseID)
        instance.LowerLimit = validated_data.get('LowerLimit', instance.LowerLimit)
        instance.UpperLimit = validated_data.get('UpperLimit', instance.UpperLimit)
        instance.LetterGrade = validated_data.get('LetterGrade', instance.LetterGrade)
        instance.save()
        return instance

    class Meta:
        model = GradeDistribution
        fields = (
            'ModelID',
            'CourseID',
            'LowerLimit',
            'UpperLimit',
            'LetterGrade'
        )


class LectureSerializer(serializers.ModelSerializer):
    # ModelID = serializers.CharField(max_length=100, required=True)
    CourseID = serializers.CharField(max_length=100, required=True)
    LectureNum = serializers.CharField(max_length=100, required=False)
    FName = serializers.CharField(max_length=100, required=False)
    LName = serializers.CharField(max_length=100, required=False)
    Phone = serializers.CharField(max_length=100, required=False)
    Office = serializers.CharField(max_length=100, required=False)
    Email = serializers.CharField(max_length=100, required=False)

    def create(self, validated_data):
        return Lecture.objects.create(
            ModelID=validated_data.get('ModelID'),
            CourseID=validated_data.get('CourseID'),
            LectureNum=validated_data.get('LectureNum'),
            FName=validated_data.get('FName'),
            LName=validated_data.get('LName'),
            Phone=validated_data.get('Phone'),
            Office=validated_data.get('Office'),
            Email=validated_data.get('Email'),
        )

    def update(self, instance, validated_data):
        instance.ModelID = validated_data.get('ModelID', instance.ModelID)
        instance.CourseID = validated_data.get('CourseID', instance.CourseID)
        instance.LectureNum = validated_data.get('LectureNum', instance.LectureNum)
        instance.FName = validated_data.get('FName', instance.FName)
        instance.LName = validated_data.get('LName', instance.LName)
        instance.Phone = validated_data.get('Phone', instance.Phone)
        instance.Office = validated_data.get('Office', instance.Office)
        instance.Email = validated_data.get('Email', instance.Email)
        instance.save()
        return instance

    class Meta:
        model = Lecture
        fields = (
            'ModelID',
            'CourseID',
            'LectureNum',
            'FName',
            'LName',
            'Phone',
            'Office',
            'Email'
        )


class TutorialSerializer(serializers.ModelSerializer):
    # ModelID = serializers.CharField(max_length=100, required=True)
    CourseID = serializers.CharField(max_length=100, required=True)
    TutorialNum = serializers.CharField(max_length=100, required=False)  # Changed Tutorial Num to CharField
    FName = serializers.CharField(max_length=100, required=False)  # Changed FName to CharField
    LName = serializers.CharField(max_length=100, required=False)
    Phone = serializers.CharField(max_length=100, required=False)
    Office = serializers.CharField(max_length=100, required=False)
    Email = serializers.CharField(max_length=100, required=False)

    def create(self, validated_data):
        return Tutorial.objects.create(
            ModelID=validated_data.get('ModelID'),
            CourseID=validated_data.get('CourseID'),
            TutorialNum=validated_data.get('TutorialNum'),
            FName=validated_data.get('FName'),
            LName=validated_data.get('LName'),
            Phone=validated_data.get('Phone'),
            Office=validated_data.get('Office'),
            Email=validated_data.get('Email'),
        )

    def update(self, instance, validated_data):
        instance.ModelID = validated_data.get('ModelID', instance.ModelID)
        instance.CourseID = validated_data.get('CourseID', instance.CourseID)
        instance.TutorialNum = validated_data.get('TutorialNum', instance.TutorialNum)
        instance.FName = validated_data.get('FName', instance.FName)
        instance.LName = validated_data.get('LName', instance.LName)
        instance.Phone = validated_data.get('Phone', instance.Phone)
        instance.Office = validated_data.get('Office', instance.Office)
        instance.Email = validated_data.get('Email', instance.Email)
        instance.save()
        return instance

    class Meta:
        model = Tutorial
        fields = (
            'ModelID',
            'CourseID',
            'TutorialNum',
            'FName',
            'LName',
            'Phone',
            'Office',
            'Email'
        )


class CourseSerializer(serializers.ModelSerializer):
    # ModelID = serializers.CharField(max_length=100, required=True)
    CourseID = serializers.CharField(max_length=100, required=True)
    CourseHours = serializers.CharField(max_length=100, required=False)  # Changed CourseHours to CharField
    CourseName = serializers.CharField(max_length=100, required=False)  # Changed CourseName to CharField
    CalenderRefrence = serializers.CharField(max_length=100, required=False)
    AcademicCredit = serializers.IntegerField(required=False)  # Changed AcademicCredit to IntegerField
    DateCreated = serializers.CharField(max_length=100, required=False)

    def create(self, validated_data):
        return Course.objects.create(
            ModelID=validated_data.get('ModelID'),
            CourseID=validated_data.get('CourseID'),
            CourseHours=validated_data.get('CourseHours'),
            CourseName=validated_data.get('CourseName'),
            CalenderRefrence=validated_data.get('CalenderRefrence'),
            AcademicCredit=validated_data.get('AcademicCredit'),
            DateCreated=validated_data.get('DateCreated'),
        )

    def update(self, instance, validated_data):
        instance.ModelID = validated_data.get('ModelID', instance.ModelID)
        instance.CourseID = validated_data.get('CourseID', instance.CourseID)
        instance.CourseHours = validated_data.get('CourseHours', instance.CourseHours)
        instance.CourseName = validated_data.get('CourseName', instance.CourseName)
        instance.CalenderRefrence = validated_data.get('CalenderRefrence', instance.CalenderRefrence)
        instance.AcademicCredit = validated_data.get('AcademicCredit', instance.AcademicCredit)
        instance.DateCreated = validated_data.get('DateCreated', instance.DateCreated)
        instance.save()
        return instance

    class Meta:
        model = Course
        fields = (
            'ModelID',
            'CourseID',
            'CourseHours',
            'CourseName',
            'CalenderRefrence',
            'AcademicCredit',
            'DateCreated'
        )


class TextbookSerializer(serializers.ModelSerializer):
    # ModelID = serializers.CharField(max_length=100, required=True)
    CourseID = serializers.CharField(max_length=100, required=True)
    TITLE = serializers.CharField(max_length=100, required=False)
    Publisher = serializers.CharField(max_length=100, required=False)
    Author = serializers.CharField(max_length=100, required=False)
    Edition = serializers.CharField(max_length=100, required=False)
    type = serializers.CharField(max_length=100, required=False)

    def create(self, validated_data):
        return Textbook.objects.create(
            ModelID=validated_data.get('ModelID'),
            CourseID=validated_data.get('CourseID'),
            TITLE=validated_data.get('TITLE'),
            Publisher=validated_data.get('Publisher'),
            Author=validated_data.get('Author'),
            Edition=validated_data.get('Edition'),
            type=validated_data.get('type'),
        )

    def update(self, instance, validated_data):
        instance.ModelID = validated_data.get('ModelID', instance.ModelID)
        instance.CourseID = validated_data.get('CourseID', instance.CourseID)
        instance.TITLE = validated_data.get('TITLE', instance.TITLE)
        instance.Publisher = validated_data.get('Publisher', instance.Publisher)
        instance.Author = validated_data.get('Author', instance.Author)
        instance.Edition = validated_data.get('Edition', instance.Edition)
        instance.type = validated_data.get('type', instance.type)
        instance.save()
        return instance

    class Meta:
        model = Textbook
        fields = (
            'ModelID',
            'CourseID',
            'TITLE',
            'Publisher',
            'Author',
            'Edition',
            'type'
        )


class AuWeightSerializer(serializers.ModelSerializer):
    # ModelID = serializers.CharField(max_length=100, required=True)
    CourseID = serializers.CharField(max_length=100, required=True)
    Category = serializers.CharField(max_length=100, required=True)
    AU = serializers.IntegerField(required=False)

    def create(self, validated_data):
        return AuWeight.objects.create(
            ModelID=validated_data.get('ModelID'),
            CourseID=validated_data.get('CourseID'),
            Category=validated_data.get('Category'),
            AU=validated_data.get('AU'),
        )

    def update(self, instance, validated_data):
        instance.ModelID = validated_data.get('ModelID', instance.ModelID)
        instance.CourseID = validated_data.get('CourseID', instance.CourseID)
        instance.Category = validated_data.get('Category', instance.Category)
        instance.AU = validated_data.get('AU', instance.AU)
        instance.save()
        return instance

    class Meta:
        model = AuWeight
        fields = (
            'ModelID',
            'CourseID',
            'Category',
            'AU'
        )


class ContentCategorySerializer(serializers.ModelSerializer):
    # ModelID = serializers.CharField(max_length=100, required=True)
    CourseID = serializers.CharField(max_length=100, required=True)
    CategoryType = serializers.CharField(max_length=100, required=True)
    Element = serializers.CharField(max_length=100, required=True)

    def create(self, validated_data):
        return ContentCategory.objects.create(
            ModelID=validated_data.get('ModelID'),
            CourseID=validated_data.get('CourseID'),
            CategoryType=validated_data.get('CategoryType'),
            Element=validated_data.get('Element'),
        )

    def update(self, instance, validated_data):
        instance.ModelID = validated_data.get('ModelID', instance.ModelID)
        instance.CourseID = validated_data.get('CourseID', instance.CourseID)
        instance.CategoryType = validated_data.get('CategoryType', instance.CategoryType)
        instance.Element = validated_data.get('Element', instance.Element)
        instance.save()
        return instance

    class Meta:
        model = ContentCategory
        fields = (
            'ModelID',
            'CourseID',
            'CategoryType',
            'Element'
        )


class LabSerializer(serializers.ModelSerializer):
    # ModelID = serializers.CharField(max_length=100, required=True)
    CourseID = serializers.CharField(max_length=100, required=True)
    LabNum = serializers.CharField(max_length=100, required=True)
    NumberOfLabs = serializers.IntegerField(required=False)
    LabType = serializers.CharField(max_length=100, required=True)
    SafetyExamined = serializers.CharField(max_length=100, required=True)
    SafetyTaught = serializers.CharField(max_length=100, required=True)
    FName = serializers.CharField(max_length=100, required=True)
    LName = serializers.CharField(max_length=100, required=True)
    Phone = serializers.CharField(max_length=100, required=True)
    Office = serializers.CharField(max_length=100, required=True)
    Email = serializers.CharField(max_length=100, required=True)

    def create(self, validated_data):
        return Lab.objects.create(
            ModelID=validated_data.get('ModelID'),
            CourseID=validated_data.get('CourseID'),
            LabNum=validated_data.get('LabNum'),
            NumberOfLabs=validated_data.get('NumberOfLabs'),
            LabType=validated_data.get('LabType'),
            SafetyExamined=validated_data.get('SafetyExamined'),
            SafetyTaught=validated_data.get('SafetyTaught'),
            FName=validated_data.get('FName'),
            LName=validated_data.get('LName'),
            Phone=validated_data.get('Phone'),
            Office=validated_data.get('Office'),
            Email=validated_data.get('Email'),
        )

    def update(self, instance, validated_data):
        instance.ModelID = validated_data.get('ModelID', instance.ModelID)
        instance.CourseID = validated_data.get('CourseID', instance.CourseID)
        instance.LabNum = validated_data.get('LabNum', instance.LabNum)
        instance.NumberOfLabs = validated_data.get('NumberOfLabs', instance.NumberOfLabs)
        instance.LabType = validated_data.get('LabType', instance.LabType)
        instance.SafetyExamined = validated_data.get('SafetyExamined', instance.SafetyExamined)
        instance.SafetyTaught = validated_data.get('SafetyTaught', instance.SafetyTaught)
        instance.FName = validated_data.get('FName', instance.FName)
        instance.LName = validated_data.get('LName', instance.LName)
        instance.Phone = validated_data.get('Phone', instance.Phone)
        instance.Office = validated_data.get('Office', instance.Office)
        instance.Email = validated_data.get('Email', instance.Email)
        instance.save()
        return instance

    class Meta:
        model = Lab
        fields = (
            'ModelID',
            'CourseID',
            'LabNum',
            'NumberOfLabs',
            'LabType',
            'SafetyExamined',
            'SafetyTaught',
            'FName',
            'LName',
            'Phone',
            'Office',
            'Email'
        )


class SectionSerializer(serializers.ModelSerializer):
    # ModelID = serializers.CharField(max_length=100, required=True)
    CourseID = serializers.CharField(max_length=100, required=True)
    SectionNumber = serializers.CharField(max_length=100, required=False)
    Students = serializers.IntegerField(required=False)
    Hours = serializers.IntegerField(required=False)
    type = serializers.CharField(max_length=100, required=True)

    def create(self, validated_data):
        return Section.objects.create(
            ModelID=validated_data.get('ModelID'),
            CourseID=validated_data.get('CourseID'),
            SectionNumber=validated_data.get('SectionNumber'),
            Students=validated_data.get('Students'),
            Hours=validated_data.get('Hours'),
            type=validated_data.get('type'),
        )

    def update(self, instance, validated_data):
        instance.ModelID = validated_data.get('ModelID', instance.ModelID)
        instance.CourseID = validated_data.get('CourseID', instance.CourseID)
        instance.SectionNumber = validated_data.get('SectionNumber', instance.SectionNumber)
        instance.Students = validated_data.get('Students', instance.Students)
        instance.Hours = validated_data.get('Hours', instance.Hours)
        instance.type = validated_data.get('type', instance.type)
        instance.save()
        return instance

    class Meta:
        model = Section
        fields = (
            'ModelID',
            'CourseID',
            'SectionNumber',
            'Students',
            'Hours',
            'type'
        )

[((8, 15, 8, 67), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((9, 12, 9, 65), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((10, 12, 10, 65), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((11, 12, 11, 65), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((12, 13, 12, 66), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((13, 12, 13, 65), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((54, 15, 54, 67), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((55, 17, 55, 71), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((56, 18, 56, 72), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((57, 24, 57, 78), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((58, 14, 58, 67), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((94, 15, 94, 67), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((95, 16, 95, 69), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((96, 23, 96, 76), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((97, 13, 97, 53), 'rest_framework.serializers.IntegerField', 'serializers.IntegerField', (), '', False, 'from rest_framework import serializers\n'), ((132, 15, 132, 67), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((133, 17, 133, 57), 'rest_framework.serializers.IntegerField', 'serializers.IntegerField', (), '', False, 'from rest_framework import serializers\n'), ((134, 18, 134, 71), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((135, 24, 135, 77), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((136, 21, 136, 74), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((172, 15, 172, 67), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((173, 17, 173, 70), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((174, 11, 174, 64), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((175, 11, 175, 64), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((176, 15, 176, 68), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((212, 15, 212, 67), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((213, 17, 213, 57), 'rest_framework.serializers.IntegerField', 'serializers.IntegerField', (), '', False, 'from rest_framework import serializers\n'), ((214, 17, 214, 57), 'rest_framework.serializers.IntegerField', 'serializers.IntegerField', (), '', False, 'from rest_framework import serializers\n'), ((215, 18, 215, 71), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((248, 15, 248, 67), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((249, 17, 249, 70), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((250, 12, 250, 65), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((251, 12, 251, 65), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((252, 12, 252, 65), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((253, 13, 253, 66), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((254, 12, 254, 65), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((296, 15, 296, 67), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((297, 18, 297, 71), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((298, 12, 298, 65), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((299, 12, 299, 65), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((300, 12, 300, 65), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((301, 13, 301, 66), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((302, 12, 302, 65), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((344, 15, 344, 67), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((345, 18, 345, 71), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((346, 17, 346, 70), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((347, 23, 347, 76), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((348, 21, 348, 61), 'rest_framework.serializers.IntegerField', 'serializers.IntegerField', (), '', False, 'from rest_framework import serializers\n'), ((349, 18, 349, 71), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((388, 15, 388, 67), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((389, 12, 389, 65), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((390, 16, 390, 69), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((391, 13, 391, 66), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((392, 14, 392, 67), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((393, 11, 393, 64), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((432, 15, 432, 67), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((433, 15, 433, 67), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((434, 9, 434, 49), 'rest_framework.serializers.IntegerField', 'serializers.IntegerField', (), '', False, 'from rest_framework import serializers\n'), ((464, 15, 464, 67), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((465, 19, 465, 71), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((466, 14, 466, 66), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((496, 15, 496, 67), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((497, 13, 497, 65), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((498, 19, 498, 59), 'rest_framework.serializers.IntegerField', 'serializers.IntegerField', (), '', False, 'from rest_framework import serializers\n'), ((499, 14, 499, 66), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((500, 21, 500, 73), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((501, 19, 501, 71), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((502, 12, 502, 64), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((503, 12, 503, 64), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((504, 12, 504, 64), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((505, 13, 505, 65), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((506, 12, 506, 64), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((560, 15, 560, 67), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((561, 20, 561, 73), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n'), ((562, 15, 562, 55), 'rest_framework.serializers.IntegerField', 'serializers.IntegerField', (), '', False, 'from rest_framework import serializers\n'), ((563, 12, 563, 52), 'rest_framework.serializers.IntegerField', 'serializers.IntegerField', (), '', False, 'from rest_framework import serializers\n'), ((564, 11, 564, 63), 'rest_framework.serializers.CharField', 'serializers.CharField', (), '', False, 'from rest_framework import serializers\n')]