Skip to content

Commit 45082b3

Browse files
Fixed missing "fields" meta argument in docs (#8243)
* Fixed missing "fields" meta argument in docs, leading to an assertion error * Update docs/api-guide/serializers.md Co-authored-by: Tom Christie <[email protected]> Co-authored-by: Tom Christie <[email protected]>
1 parent f4cf026 commit 45082b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/api-guide/serializers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ You can add extra fields to a `ModelSerializer` or override the default fields b
524524

525525
class Meta:
526526
model = Account
527+
fields = ['url', 'groups']
527528

528529
Extra fields can correspond to any property or callable on the model.
529530

0 commit comments

Comments
 (0)