Add organisation info to branding requests

This will let us know which organisation the person asking for the
branding is from. This should reduce how often we have to go back to
them and ask.
This commit is contained in:
Chris Hill-Scott
2018-07-10 16:08:32 +01:00
parent ce9c5ca892
commit 949bf6feea
4 changed files with 8 additions and 3 deletions

View File

@@ -437,6 +437,8 @@ class AgreementInfo:
self.domain_names,
), None)
self._domain = email_address_or_domain.split('@')[-1]
(
self.owner,
self.crown_status,
@@ -469,7 +471,7 @@ class AgreementInfo:
}.get(self.crown_status),
)
else:
return 'Cant tell'
return 'Cant tell (domain is {})'.format(self._domain)
@property
def as_jinja_template(self):