def brand(id): cat = Category() brand = Brand() pro = Product() a = pro.getProductsByBrand(id) b = brand.getBrands() c = cat.getCategories() d = brand.getBrandById(id) return render_template('home/brand.html', arr=a, crr=c, brr=b, title=d[1])
def edit(id): brand = Brand() i = brand.getBrandById(id) return render_template('brand/edit.html', i=i)