Skip to content

Commit

Permalink
Use StringRelatedField to fix repository serializer in nlp
Browse files Browse the repository at this point in the history
  • Loading branch information
dougppaz committed Sep 3, 2018
1 parent c4e411a commit 08c28f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bothub/api/serializers/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ class Meta:
'entities',
]

repository = serializers.StringRelatedField(read_only=True)
entities = serializers.SlugRelatedField(
many=True,
slug_field='value',
Expand Down

0 comments on commit 08c28f9

Please sign in to comment.