set te,palte work

This commit is contained in:
CHIEFSOFT\ameye
2025-09-30 13:50:58 -04:00
parent 8759bc8457
commit f8a2278903
2 changed files with 23 additions and 15 deletions
+7
View File
@@ -34,6 +34,13 @@ class ProductsTemplates(db.Model):
raise ValueError(f"Templates not found")
return templates
@classmethod
def get_template_by_uid(cls, template_uid):
selTemplate = cls.query.filter_by(uif=template_uid).first()
if not selTemplate:
return None
return selTemplate
def to_dict(self):
return {