mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Merge pull request #3660 from sloria/patch-1
Fix typo in docstring for ReadOnlyField
This commit is contained in:
commit
a8deb380ff
|
@ -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')
|
||||
"""
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user