Make label for None branding_style read as 'GOV.UK'

This commit is contained in:
Tom Byers
2018-08-30 11:44:36 +01:00
parent ad0ffcc3f3
commit c2075b6d71

View File

@@ -874,7 +874,7 @@ def service_set_email_branding(service_id):
# dynamically create org choices, including the null option
email_brandings = sorted(get_branding_as_value_and_label(email_branding),
key=lambda tup: tup[1].lower())
form.branding_style.choices = [('None', 'None')] + email_brandings
form.branding_style.choices = [('None', 'GOV.UK')] + email_brandings
if form.validate_on_submit():
branding_style = None if form.branding_style.data == 'None' else form.branding_style.data