Skip to content

serializers

DatasetSerializer

Bases: serializers.ModelSerializer

Source code in datasets/serializers.py
 7
 8
 9
10
11
12
class DatasetSerializer(serializers.ModelSerializer):
    creator = ShortUserSerializer(read_only=True)

    class Meta:
        model = Dataset
        exclude = []

creator = ShortUserSerializer(read_only=True) class-attribute

Meta

Source code in datasets/serializers.py
10
11
12
class Meta:
    model = Dataset
    exclude = []

exclude = [] class-attribute

model = Dataset class-attribute