rest.workspace.serializers

Serializers used throughout the workspace Rest API

class rest.workspace.serializers.WorkspaceSerializer(instance=None, data=<class rest_framework.fields.empty>, **kwargs)

Bases: rest_framework_mongoengine.serializers.DocumentSerializer

Workspace serializer

class Meta
fields = ['id', 'title', 'owner']
model

alias of core_main_app.components.workspace.models.Workspace

read_only_fields = ('id', 'owner')
create(validated_data)

Create and return a new workspace instance, given the validated data.