Skip to content

Commit

Permalink
Fix typo in docstring for ReadOnlyField
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria committed Nov 20, 2015
1 parent f30f25f commit b209fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
"""

Expand Down

0 comments on commit b209fe0

Please sign in to comment.