mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-26 17:23:50 -04:00
Merge pull request #1417 from alphagov/fix-template-type-reply-to-order
Fix an intermittent test failure when creating a template with reply_to
This commit is contained in:
@@ -526,6 +526,12 @@ class TemplateProcessTypes(db.Model):
|
|||||||
class TemplateBase(db.Model):
|
class TemplateBase(db.Model):
|
||||||
__abstract__ = True
|
__abstract__ = True
|
||||||
|
|
||||||
|
def __init__(self, **kwargs):
|
||||||
|
if 'template_type' in kwargs:
|
||||||
|
self.template_type = kwargs.pop('template_type')
|
||||||
|
|
||||||
|
super().__init__(**kwargs)
|
||||||
|
|
||||||
id = db.Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)
|
id = db.Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)
|
||||||
name = db.Column(db.String(255), nullable=False)
|
name = db.Column(db.String(255), nullable=False)
|
||||||
template_type = db.Column(template_types, nullable=False)
|
template_type = db.Column(template_types, nullable=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user