from rest_framework import serializers
from .models import *
content = [{'error': 0, 'response': 'success', 'id': 0}]
error = [{'error': 1, 'response': 'fail', 'id': 0}]


class courseSerializer(serializers.ModelSerializer):


    class Meta:
        model = Course
        fields = '__all__'


class moduleSerializer(serializers.ModelSerializer):


    class Meta:
        model = Module
        fields = '__all__'


class enrollSerializer(serializers.ModelSerializer):


    class Meta:
        model = Enrollment
        fields = '__all__'


class testSerializer(serializers.ModelSerializer):


    class Meta:
        model = Test
        fields = '__all__'


class marksSerializer(serializers.ModelSerializer):


    class Meta:
        model = Marks
        fields = '__all__'


class NGOSerializer(serializers.ModelSerializer):


    class Meta:
        model = NGO
        fields = '__all__'

ef65a10b0afc1d7dc43534ed454c9a61ac03f7bb
<mask token>


class moduleSerializer(serializers.ModelSerializer):


    class Meta:
        model = Module
        fields = '__all__'


class enrollSerializer(serializers.ModelSerializer):


    class Meta:
        model = Enrollment
        fields = '__all__'


class testSerializer(serializers.ModelSerializer):


    class Meta:
        model = Test
        fields = '__all__'


class marksSerializer(serializers.ModelSerializer):


    class Meta:
        model = Marks
        fields = '__all__'


class NGOSerializer(serializers.ModelSerializer):


    class Meta:
        model = NGO
        fields = '__all__'

<mask token>


class courseSerializer(serializers.ModelSerializer):


    class Meta:
        model = Course
        fields = '__all__'


class moduleSerializer(serializers.ModelSerializer):


    class Meta:
        model = Module
        fields = '__all__'


class enrollSerializer(serializers.ModelSerializer):


    class Meta:
        model = Enrollment
        fields = '__all__'


class testSerializer(serializers.ModelSerializer):


    class Meta:
        model = Test
        fields = '__all__'


class marksSerializer(serializers.ModelSerializer):


    class Meta:
        model = Marks
        fields = '__all__'


class NGOSerializer(serializers.ModelSerializer):


    class Meta:
        model = NGO
        fields = '__all__'

<mask token>
content = [{'error': 0, 'response': 'success', 'id': 0}]
error = [{'error': 1, 'response': 'fail', 'id': 0}]


class courseSerializer(serializers.ModelSerializer):


    class Meta:
        model = Course
        fields = '__all__'


class moduleSerializer(serializers.ModelSerializer):


    class Meta:
        model = Module
        fields = '__all__'


class enrollSerializer(serializers.ModelSerializer):


    class Meta:
        model = Enrollment
        fields = '__all__'


class testSerializer(serializers.ModelSerializer):


    class Meta:
        model = Test
        fields = '__all__'


class marksSerializer(serializers.ModelSerializer):


    class Meta:
        model = Marks
        fields = '__all__'


class NGOSerializer(serializers.ModelSerializer):


    class Meta:
        model = NGO
        fields = '__all__'

from rest_framework import serializers
from .models import *
content = [{'error': 0, 'response': 'success', 'id': 0}]
error = [{'error': 1, 'response': 'fail', 'id': 0}]


class courseSerializer(serializers.ModelSerializer):


    class Meta:
        model = Course
        fields = '__all__'


class moduleSerializer(serializers.ModelSerializer):


    class Meta:
        model = Module
        fields = '__all__'


class enrollSerializer(serializers.ModelSerializer):


    class Meta:
        model = Enrollment
        fields = '__all__'


class testSerializer(serializers.ModelSerializer):


    class Meta:
        model = Test
        fields = '__all__'


class marksSerializer(serializers.ModelSerializer):


    class Meta:
        model = Marks
        fields = '__all__'


class NGOSerializer(serializers.ModelSerializer):


    class Meta:
        model = NGO
        fields = '__all__'
