mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 00:19:53 +03:00
Update docs/api-guide/serializers.md
Co-authored-by: Tom Christie <tom@tomchristie.com>
This commit is contained in:
parent
1da4f2b8f8
commit
9544b3dcc4
|
@ -524,7 +524,7 @@ You can add extra fields to a `ModelSerializer` or override the default fields b
|
|||
|
||||
class Meta:
|
||||
model = Account
|
||||
fields = ['get_absolute_url', 'groups']
|
||||
fields = ['url', 'groups']
|
||||
|
||||
Extra fields can correspond to any property or callable on the model.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user