Add create and update fns for organisation dao

This commit is contained in:
Ken Tsang
2017-07-06 10:58:48 +01:00
parent a6df96213b
commit 2f8bc0feae
2 changed files with 19 additions and 21 deletions

View File

@@ -12,12 +12,10 @@ def dao_get_organisation_by_id(org_id):
@transactional
@version_class(Organisation)
def dao_create_organisation(organisation):
db.session.add(organisation)
@transactional
@version_class(Organisation)
def dao_update_organisation(organisation):
db.session.add(organisation)