Added a new endpoint that can be used for organisation or service invitations.

The other two invitation endpoints will be removed once the admin app is updated.
This commit is contained in:
Rebecca Law
2018-02-23 14:15:39 +00:00
parent 446e76f1f3
commit 466aabdbea
3 changed files with 89 additions and 7 deletions

View File

@@ -246,11 +246,6 @@ class Organisation(db.Model):
'Service',
secondary='organisation_to_service',
uselist=True)
#
# users = db.relationship(
# 'User',
# secondary=user_to_organisation,
# backref=db.backref('user_to_organisation', lazy='dynamic'))
def serialize(self):
serialized = {