From c7e60c44e2b9fbabd69c6e36121c1983abbdad85 Mon Sep 17 00:00:00 2001 From: spacenergy Date: Fri, 2 Oct 2015 16:52:21 +0600 Subject: [PATCH] auto --- batiskaf/jinja2.py | 2 +- batiskaf/templates/jinja2/base.jinja | 4 ---- batiskaf/templates/jinja2/includes/category_filter.jinja | 4 ++-- store/models.py | 2 +- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/batiskaf/jinja2.py b/batiskaf/jinja2.py index cdf7a24..dae2ef2 100644 --- a/batiskaf/jinja2.py +++ b/batiskaf/jinja2.py @@ -14,7 +14,7 @@ def environment(**options): 'static': staticfiles_storage.url, 'url': reverse, 'main_categories': Category.objects.filter(parent__isnull=True).order_by('pk'), - 'all_brands': Brand.objects.order_by('pk'), + 'all_brands': Brand.objects.order_by('title'), }) env.filters['linebreaks'] = linebreaks env.filters['thumbnail'] = thumbnail diff --git a/batiskaf/templates/jinja2/base.jinja b/batiskaf/templates/jinja2/base.jinja index ea7e2c6..90b884a 100644 --- a/batiskaf/templates/jinja2/base.jinja +++ b/batiskaf/templates/jinja2/base.jinja @@ -159,10 +159,6 @@ {% endfor %} - - - - diff --git a/batiskaf/templates/jinja2/includes/category_filter.jinja b/batiskaf/templates/jinja2/includes/category_filter.jinja index 92d5fee..0d45a24 100644 --- a/batiskaf/templates/jinja2/includes/category_filter.jinja +++ b/batiskaf/templates/jinja2/includes/category_filter.jinja @@ -4,7 +4,7 @@ {% if not category.hide_products and category.childs.all() %}
→   Категории