set te,palte work
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user