Move remove_empty_string filter to BaseForm and use the filter to coerce the role to be None

This commit is contained in:
leigh-mil
2019-04-24 11:15:10 -04:00
parent 5e415edaef
commit e7903ed000
4 changed files with 29 additions and 36 deletions

View File

@@ -217,4 +217,4 @@ REQUIRED_DISTRIBUTIONS = [
("other", "Other as necessary"),
]
ENV_ROLES = [(role.value, role.value) for role in CSPRole] + [("", "No access")]
ENV_ROLES = [(role.value, role.value) for role in CSPRole] + [(None, "No access")]