Adicionar EmbeddedDocuments em serializers

parent 6aad0aed
from rest_framework_mongoengine import serializers
from eventos.core.models import EventSubmission, Owner
class OwnerSerializer(serializers.EmbeddedDocumentSerializer):
class Meta:
model = Owner
class EventSubmissionSerializer(serializers.EmbeddedDocumentSerializer):
class Meta:
model = EventSubmission
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment