mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-16 19:41:06 +03:00
Fix typo in docstring for ReadOnlyField
This commit is contained in:
parent
f30f25facc
commit
b209fe04fc
|
@ -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