From c4fddab6a62f3afd856806014cb46bab7425c789 Mon Sep 17 00:00:00 2001 From: Alexey Bezhan Date: Thu, 22 Feb 2018 11:53:42 +0000 Subject: [PATCH] Add a hidden column to templates Allows hiding templates from the templates list in the admin app and related API responses. This is used for 'internal' templates that we create for notifications that wouldn't have a template otherwise (eg pre-compiled PDF letters) --- app/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models.py b/app/models.py index f0096d377..f8594bc50 100644 --- a/app/models.py +++ b/app/models.py @@ -664,6 +664,7 @@ class TemplateBase(db.Model): updated_at = db.Column(db.DateTime, onupdate=datetime.datetime.utcnow) content = db.Column(db.Text, nullable=False) archived = db.Column(db.Boolean, nullable=False, default=False) + hidden = db.Column(db.Boolean, nullable=False, default=False) subject = db.Column(db.Text) @declared_attr