<reponame>AKSHANSH47/crowdsource-platform2
from crowdsourcing import models
from rest_framework import serializers
from crowdsourcing.serializers.dynamic import DynamicFieldsModelSerializer


class RequesterSerializer(DynamicFieldsModelSerializer):
    class Meta:
        model = models.Requester
        fields = ('id', 'alias', 'profile')


class QualificationSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.Qualification
        fields = ('project', 'types', 'type', 'created_timestamp', 'last_updated')
        read_only_fields = ('project', 'types', 'created_timestamp', 'last_updated')

from crowdsourcing import models
from rest_framework import serializers
from crowdsourcing.serializers.dynamic import DynamicFieldsModelSerializer


class RequesterSerializer(DynamicFieldsModelSerializer):
    class Meta:
        model = models.Requester
        fields = ('id', 'alias', 'profile')


class QualificationSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.Qualification
        fields = ('project', 'types', 'type', 'created_timestamp', 'last_updated')
        read_only_fields = ('project', 'types', 'created_timestamp', 'last_updated')