sub view
This commit is contained in:
@@ -22,7 +22,8 @@ class ProductsTemplates(db.Model):
|
||||
templates = cls.query.filter_by(product_id=str(product_id)).all()
|
||||
|
||||
if not templates:
|
||||
raise ValueError(f"Templates with Product ID {product_id} not found")
|
||||
# raise ValueError(f"Templates with Product ID {product_id} not found")
|
||||
return None
|
||||
return templates
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user