-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 [#4126] Rework editgrid serializer field setup
We cannot simply use ListField, as that applies the same child serializer for every item inside the array of values, but the field configuration of the child actually changes depending on the values passed in (some fields may be hidden, and that disables their validations entirely). Note the disclaimer about rest_framework.fields.Field.__repr__, this method behaves unexpectedly because it doesn't report the current values of args/kwargs, but the values at the time of instance creation. Backport-of: #4125
- Loading branch information
1 parent
8b36990
commit c4ebb17
Showing
3 changed files
with
327 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.