From 002d1c4d07a26556e522b5e2ac29e441a240a1f9 Mon Sep 17 00:00:00 2001 From: duker Date: Fri, 7 Sep 2018 12:21:30 +0300 Subject: [PATCH] #550 Fix shadowed var --- shopelectro/views/catalog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shopelectro/views/catalog.py b/shopelectro/views/catalog.py index 471ef491..fe3bef58 100644 --- a/shopelectro/views/catalog.py +++ b/shopelectro/views/catalog.py @@ -101,7 +101,7 @@ class IndexPage(pages_views.CustomPageView): def get_context_data(self, **kwargs): """Extended method. Add product's images to context.""" - context = super(IndexPage, self).get_context_data(**kwargs) + context_ = super(IndexPage, self).get_context_data(**kwargs) mobile_view = get_user_agent(self.request).is_mobile tile_products = [] @@ -115,7 +115,7 @@ def get_context_data(self, **kwargs): tile_products = context.prepare_tile_products(top_products) return { - **context, + **context_, 'tile_title': 'ТОП 10 ТОВАРОВ', 'category_tile': settings.MAIN_PAGE_TILE, 'tile_products': tile_products,