mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 23:26:23 -05:00
Restore dao_create_template and use custom template fixture instead
This commit is contained in:
@@ -13,8 +13,8 @@ from app.dao.dao_utils import (
|
||||
|
||||
@transactional
|
||||
@version_class(Template, TemplateHistory)
|
||||
def dao_create_template(template, template_id=None):
|
||||
template.id = template_id or uuid.uuid4() # must be set now so version history model can use same id
|
||||
def dao_create_template(template):
|
||||
template.id = uuid.uuid4() # must be set now so version history model can use same id
|
||||
template.archived = False
|
||||
db.session.add(template)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user