Flag go live requests from DWP

It’s not enough to check that they’ve signed the agreement. We have to
make sure we inform them every time a service wants to go live.
This commit is contained in:
Chris Hill-Scott
2019-02-19 10:54:27 +00:00
parent 8986e1db32
commit 032cbf9a17
2 changed files with 14 additions and 0 deletions

View File

@@ -440,6 +440,8 @@ class AgreementInfo:
@property
def as_human_readable(self):
if self.canonical_domain and 'dwp' in self.canonical_domain:
return 'DWP - Requires OED approval'
if self.agreement_signed:
return 'Yes, on behalf of {}'.format(self.owner)
elif self.owner: