Remove pricing stuff from organisation model

We’re not linking to the agreement from the pricing page any more, so we don’t need to talk about whether an organisation has signed it or not.
This commit is contained in:
Chris Hill-Scott
2019-04-16 15:45:36 +01:00
committed by GitHub
parent f3a2e695fb
commit 3e969280fc

View File

@@ -88,36 +88,6 @@ class Organisation(JSONModel):
'agreement.'.format(self.name)
)
def as_pricing_paragraph(self, **kwargs):
return Markup(self._as_pricing_paragraph(**kwargs))
def _as_pricing_paragraph(self, pricing_link, download_link, support_link, signed_in):
if not signed_in:
return ((
'<a href="{}">Sign in</a> to download a copy or find '
'out if one is already in place with your organisation.'
).format(pricing_link))
if self.agreement_signed is None:
return ((
'<a href="{}">Download the agreement</a> or '
'<a href="{}">contact us</a> to find out if we already '
'have one in place with your organisation.'
).format(download_link, support_link))
return (
'<a href="{}">Download the agreement</a> '
'({} {}).'.format(
download_link,
self.name,
{
True: 'has already accepted it',
False: 'hasnt accepted it yet'
}.get(self.agreement_signed)
)
)
@property
def _acceptance_required(self):
return (