Update docs/api-guide/serializers.md

Co-authored-by: Tom Christie <tom@tomchristie.com>
This commit is contained in:
Guilouf 2021-12-14 12:38:45 +01:00 committed by GitHub
parent 1da4f2b8f8
commit 9544b3dcc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.