Пример #1
0
def category(id):
    cat = Category()
    brand = Brand()
    pro = Product()
    a = pro.getProductsByCategory(id)
    b = brand.getBrands()
    c = cat.getCategories()
    d = cat.getCategoryById(id)
    return render_template('home/category.html',
                           arr=a,
                           crr=c,
                           brr=b,
                           title=d[1])
Пример #2
0
def edit(id):
    cat = Category()
    i = cat.getCategoryById(id)
    return render_template('category/edit.html', i=i)
Пример #3
0
def edit(id):
    cat = Category()
    v = cat.getCategoryById(id)
    print(v)
    return render_template('/category/edit.html' , i = v )