-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP - Allow inference of booleans in enums
Where a field is a BooleanField or a NullBooleanField inference should generate a lookup list with `[Yes, No]` and `[Yes, No, Unknown]` as options (for radio buttons). This will require changes to templates/radio.html so that Unkown does not use Unknown as a value, instead leaving the value empty so that we know the intended value is None. This would be easier if lookuplists were tuples (like choices in Django) so I'm considering implementing support for lists of tuples (as well as the current list of strings) for lookuplists - the alternative is too much logic in the template and special-casing the string 'Unknown' Will fix #1540
- Loading branch information
Showing
3 changed files
with
23 additions
and
1 deletion.
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