diff --git a/app/models/products_templates.py b/app/models/products_templates.py index 775e1d6..a77ce20 100644 --- a/app/models/products_templates.py +++ b/app/models/products_templates.py @@ -57,7 +57,7 @@ class ProductsTemplates(db.Model): @classmethod def get_template_by_uid(cls, template_uid): - selTemplate = cls.query.filter_by(uif=template_uid).first() + selTemplate = cls.query.filter_by(uid=template_uid).first() if not selTemplate: return None return selTemplate