mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 23:26:23 -05:00
Update EmailBranding model so it has separate name and text fields
This commit is contained in:
@@ -205,6 +205,7 @@ class EmailBranding(db.Model):
|
||||
colour = db.Column(db.String(7), nullable=True)
|
||||
logo = db.Column(db.String(255), nullable=True)
|
||||
name = db.Column(db.String(255), nullable=True)
|
||||
text = db.Column(db.String(255), nullable=True)
|
||||
|
||||
def serialize(self):
|
||||
serialized = {
|
||||
@@ -212,6 +213,7 @@ class EmailBranding(db.Model):
|
||||
"colour": self.colour,
|
||||
"logo": self.logo,
|
||||
"name": self.name,
|
||||
"text": self.text,
|
||||
}
|
||||
|
||||
return serialized
|
||||
|
||||
Reference in New Issue
Block a user