Skip to content

Commit

Permalink
#550 Fix shadowed var
Browse files Browse the repository at this point in the history
  • Loading branch information
duker33 committed Sep 7, 2018
1 parent dd55ab6 commit 002d1c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shopelectro/views/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand All @@ -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,
Expand Down

0 comments on commit 002d1c4

Please sign in to comment.