Commit e682bfa5 by Tom Christie

Drop unneccessary `source=` argument.

parent 896477f6
...@@ -67,7 +67,7 @@ For example, given the following models: ...@@ -67,7 +67,7 @@ For example, given the following models:
And a model serializer defined like this: And a model serializer defined like this:
class BookmarkSerializer(serializers.ModelSerializer): class BookmarkSerializer(serializers.ModelSerializer):
tags = serializers.ManyRelatedField(source='tags') tags = serializers.ManyRelatedField()
class Meta: class Meta:
model = Bookmark model = Bookmark
......
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