Skip to content

Commit

Permalink
Use many=True, not old style ManyHyperlinkedRelatedField
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie committed Dec 3, 2013
1 parent bdad0bd commit 89ad611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snippets/serializers.py
Expand Up @@ -14,7 +14,7 @@ class Meta:


class UserSerializer(serializers.HyperlinkedModelSerializer):
snippets = serializers.ManyHyperlinkedRelatedField(view_name='snippet-detail')
snippets = serializers.HyperlinkedRelatedField(view_name='snippet-detail', many=True)

class Meta:
model = User
Expand Down

0 comments on commit 89ad611

Please sign in to comment.