Skip to content

serializers

ReportSerializer

Bases: serializers.ModelSerializer

Source code in reports/serializers.py
 8
 9
10
11
12
13
14
class ReportSerializer(serializers.ModelSerializer):
    dataset = DatasetSerializer(read_only=True)
    creator = ShortUserSerializer(read_only=True)

    class Meta:
        model = Report
        exclude = []

creator = ShortUserSerializer(read_only=True) class-attribute

dataset = DatasetSerializer(read_only=True) class-attribute

Meta

Source code in reports/serializers.py
12
13
14
class Meta:
    model = Report
    exclude = []

exclude = [] class-attribute

model = Report class-attribute