Fixed missing "fields" meta argument in docs, leading to an assertion error

This commit is contained in:
Guilouf 2021-11-09 12:41:57 +01:00
parent 781890b7df
commit 1da4f2b8f8

View File

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