Skip to content

Commit

Permalink
Merge pull request #3660 from sloria/patch-1
Browse files Browse the repository at this point in the history
Fix typo in docstring for ReadOnlyField
  • Loading branch information
tomchristie committed Nov 21, 2015
2 parents f30f25f + b209fe0 commit a8deb38
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 a8deb38

Please sign in to comment.