Browse Source

Update ProjectSerializer

Remove labels and documents fields because it maybe be too heavy to pass frontend.
pull/10/head
Hironsan 6 years ago
parent
commit
79c8da567f
1 changed files with 1 additions and 3 deletions
  1. 4
      app/server/serializers.py

4
app/server/serializers.py

@ -59,9 +59,7 @@ class Seq2seqSerializer(serializers.ModelSerializer):
class ProjectSerializer(serializers.ModelSerializer):
labels = LabelSerializer(many=True)
documents = DocumentSerializer(many=True)
class Meta:
model = Project
fields = ('id', 'name', 'description', 'users', 'labels', 'documents', 'project_type', 'image')
fields = ('id', 'name', 'description', 'users', 'project_type', 'image')
Loading…
Cancel
Save