Fix typo in docstring for ReadOnlyField

This commit is contained in:
Steven Loria 2015-11-20 13:51:21 -05:00
parent f30f25facc
commit b209fe04fc

View File

@ -1565,7 +1565,7 @@ class ReadOnlyField(Field):
For example, the following would call `get_expiry_date()` on the object:
class ExampleSerializer(self):
class ExampleSerializer(Serializer):
expiry_date = ReadOnlyField(source='get_expiry_date')
"""