Refactor following review

This commit is contained in:
Pea Tyczynska
2019-07-19 15:30:21 +01:00
parent c8ed608c9a
commit eae1ccf607
2 changed files with 4 additions and 6 deletions

View File

@@ -268,9 +268,7 @@ class Service(JSONModel):
@property
def shouldnt_use_govuk_as_sms_sender(self):
return self.organisation_type in {
'local', 'nhs', 'nhs_local', 'nhs_central', 'emergency_service', 'school_or_college', 'other'
}
return self.organisation_type != 'central'
@cached_property
def sms_senders(self):