Beispiel #1
0
class OverviewSerializer(serializers.ModelSerializer):
    user = MiniUserSerializer()
    country = RegoCountrySerializer()

    class Meta:
        model = Overview
        fields = '__all__'
Beispiel #2
0
class ListNiceDocSerializer(EnumSupportSerializerMixin,
                            serializers.ModelSerializer):
    country = RegoCountrySerializer()
    visibility_display = serializers.CharField(source='get_visibility_display',
                                               read_only=True)

    class Meta:
        model = NiceDocument
        fields = ('name', 'country', 'document', 'document_url', 'visibility',
                  'visibility_display')
Beispiel #3
0
class OverviewSerializer(serializers.ModelSerializer):
    user = MiniUserSerializer()
    country = RegoCountrySerializer()
    type_of_assessment = AssessmentTypeSerializer()
    included_forms = serializers.CharField(source='get_included_forms',
                                           read_only=True)

    class Meta:
        model = Overview
        fields = '__all__'
Beispiel #4
0
class ListDraftSerializer(serializers.ModelSerializer):
    user = UserSerializer()
    country = RegoCountrySerializer()

    class Meta:
        model = Draft
        fields = (
            'country',
            'code',
            'user',
            'data',
            'id',
        )
Beispiel #5
0
class ShortFormSerializer(serializers.ModelSerializer):
    country = RegoCountrySerializer()

    class Meta:
        model = Form
        fields = (
            'name',
            'code',
            'updated_at',
            'country',
            'language',
            'id',
        )
Beispiel #6
0
class ListNiceDocSerializer(serializers.ModelSerializer):
    country = RegoCountrySerializer()

    class Meta:
        model = NiceDocument
        fields = ('name', 'country', 'document', 'document_url', 'visibility')