Merge pull request #3019 from alphagov/sign-online

Allow online acceptance of the contract/memorandum of understanding
This commit is contained in:
Chris Hill-Scott
2019-06-27 15:26:41 +01:00
committed by GitHub
13 changed files with 553 additions and 49 deletions

View File

@@ -19,6 +19,8 @@ class Organisation(JSONModel):
'agreement_signed_at',
'agreement_signed_by_id',
'agreement_signed_version',
'agreement_signed_on_behalf_of_name',
'agreement_signed_on_behalf_of_email_address',
'domains',
'request_to_go_live_notes',
'count_of_live_services',
@@ -156,6 +158,10 @@ class Organisation(JSONModel):
key=lambda user: user.email_address.lower(),
)
def update(self, **kwargs):
response = organisations_client.update_organisation(self.id, **kwargs)
self.__init__(response)
class Organisations(ModelList):
client = organisations_client.get_organisations