mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-19 14:03:52 -04:00
Use "get_email_choices" directly in branding view
This commit is contained in:
@@ -2200,13 +2200,10 @@ class ChooseEmailBrandingForm(ChooseBrandingForm):
|
||||
|
||||
def __init__(self, service):
|
||||
super().__init__()
|
||||
self.options.choices = tuple(self.get_available_choices(service))
|
||||
|
||||
@classmethod
|
||||
def get_available_choices(cls, service):
|
||||
return (
|
||||
self.options.choices = tuple(
|
||||
list(branding.get_email_choices(service)) +
|
||||
[cls.FALLBACK_OPTION]
|
||||
[self.FALLBACK_OPTION]
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user