mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-10 03:14:58 -04:00
Always put HM Government at the top of the list
It’s the default, so we should treat it the same way we treat GOV.UK in the email branding selection.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import weakref
|
||||
from datetime import datetime, timedelta
|
||||
from itertools import chain
|
||||
from operator import itemgetter
|
||||
|
||||
import pytz
|
||||
from flask_wtf import FlaskForm as Form
|
||||
@@ -788,7 +787,10 @@ class LetterBranding(StripWhitespaceForm):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.dvla_org_id.choices = list(sorted(
|
||||
choices,
|
||||
key=itemgetter(1),
|
||||
key=lambda choice: (
|
||||
choice[0] != '001',
|
||||
choice[1],
|
||||
),
|
||||
))
|
||||
|
||||
dvla_org_id = RadioField(
|
||||
|
||||
Reference in New Issue
Block a user