-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Admin: fix and improve UI for downsample factors
This UI has always been cumbersome, but recently broke entirely for custom factors do to Django changes. Fix this and simplify the interaction between field and widget here. This is deceptively difficult because: - MultiValueField and MultiWidget assume list (and *sometimes* tuple) types are already decompressed. Downsample factors are a list of Integer3D, and have to be so elsewhere for use as an ArrayField. - SimpleArrayField also makes assumptions about coupling with its default widget. - The SimpleArrayFields used are of Integer3DFormField, which is another MultiValueField/MultiWidget of list type. See discussion in #1827.
- Loading branch information
1 parent
28b6477
commit ab8fd48
Showing
3 changed files
with
26 additions
and
9 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
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