Fix org info in branding requests with known orgs

This wasn’t looking quite right in the case where an organisation is in
our list of domains.
This commit is contained in:
Chris Hill-Scott
2018-07-10 17:18:50 +01:00
parent 47e83c6922
commit ed9444b436
3 changed files with 15 additions and 1 deletions

View File

@@ -473,6 +473,10 @@ class AgreementInfo:
else:
return 'Cant tell (domain is {})'.format(self._domain)
@property
def as_info_for_branding_request(self):
return self.owner or 'Cant tell (domain is {})'.format(self._domain)
@property
def as_jinja_template(self):
if self.crown_status is None: