Remoção de redundâncias

parent c2fd362c
......@@ -6,7 +6,6 @@ from eventos.core.models import EventRef, UserRef
class UserRefSerializer(serializers.EmbeddedDocumentSerializer):
class Meta:
model = UserRef
fields = "__all__"
class EventRefSerializer(serializers.EmbeddedDocumentSerializer):
......
......@@ -10,8 +10,6 @@ class EventSerializer(serializers.DocumentSerializer):
class Meta:
ref_name = "Event"
model = Event
fields = "__all__"
read_only_fields = ("id",)
def create(self, validated_data):
owners_data = validated_data.pop("owners")
......
......@@ -11,7 +11,6 @@ class SubmissionSerializer(serializers.DocumentSerializer):
class Meta:
ref_name = "Submission"
model = Submission
fields = "__all__"
def create(self, validated_data):
owners_data = validated_data.pop("owners")
......
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