parent
e33f2cfdfa
commit
a09ac8e44d
1 changed files with 2 additions and 1 deletions
@ -1,10 +1,11 @@ |
||||
|
||||
from products.forms import ProductSearchForm |
||||
from products.models import ProductCategory |
||||
|
||||
|
||||
def product_search_form(request): |
||||
return {'product_search_form': ProductSearchForm()} |
||||
|
||||
def product_root_categories(request): |
||||
categories = {'product_root_categories': []} |
||||
categories = {'product_root_categories': ProductCategory.objects.get_root_categories()} |
||||
return categories |
||||
|
||||
Loading…
Reference in new issue