Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boolean inference in enums #1615

Closed
wants to merge 4 commits into from
Closed

Commits on Jun 18, 2018

  1. 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
    rossjones committed Jun 18, 2018
    Configuration menu
    Copy the full SHA
    a66f108 View commit details
    Browse the repository at this point in the history
  2. Appease the linter

    rossjones committed Jun 18, 2018
    Configuration menu
    Copy the full SHA
    a6acac4 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2018

  1. Configuration menu
    Copy the full SHA
    9f51433 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0ce132e View commit details
    Browse the repository at this point in the history