mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
Fixed missing "fields" meta argument in docs, leading to an assertion error
This commit is contained in:
parent
781890b7df
commit
1da4f2b8f8
|
@ -524,6 +524,7 @@ You can add extra fields to a `ModelSerializer` or override the default fields b
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Account
|
model = Account
|
||||||
|
fields = ['get_absolute_url', 'groups']
|
||||||
|
|
||||||
Extra fields can correspond to any property or callable on the model.
|
Extra fields can correspond to any property or callable on the model.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user