fairdm.core.project.serializers#

DRF serializer for projects.

Module Contents#

Classes#

ProjectSerializer

Serialize a project for the REST API, with expandable related datasets.

API#

class ProjectSerializer(instance=None, data=empty, **kwargs)#

Bases: rest_framework.serializers.ModelSerializer

Serialize a project for the REST API, with expandable related datasets.

The visibility and options fields are excluded from the output.

Initialization

web#

‘HyperlinkedIdentityField(…)’

class Meta#
model#

None

exclude#

[‘visibility’, ‘options’]

expandable_fields#

None