From 647bfd927b859c5714cb2cbd02ce79f4201de649 Mon Sep 17 00:00:00 2001 From: Alexander Burdeiny Date: Mon, 27 Jun 2016 11:35:22 +0300 Subject: [PATCH] =?UTF-8?q?1374:=20=D0=AD=D1=82=D0=B0=D0=BF=20=E2=84=964?= =?UTF-8?q?=20-=20=D0=A3=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=B3=D0=BB=D0=B0=D0=B2=D0=BD=D0=BE=D0=B9=20=D1=81?= =?UTF-8?q?=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D0=B5=D0=B9=20=D1=83=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=BD=D0=BE=20?= =?UTF-8?q?=D0=B6=D0=BE=D1=81=D1=82=D0=BA=D0=BE=D0=B5=20=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D0=BB=D0=BE=20=D0=B2=D1=8B=D0=B1=D0=BE=D1=80=D0=BA?= =?UTF-8?q?=D0=B8=20=D1=82=D0=B5=D0=BC=20=D0=BD=D0=B0=20=D0=B3=D0=BB=D0=B0?= =?UTF-8?q?=D0=B2=D0=BD=D1=83=D1=8E=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=86=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proj/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proj/views.py b/proj/views.py index b0a1af87..e0b82252 100644 --- a/proj/views.py +++ b/proj/views.py @@ -86,8 +86,8 @@ class MainPageView(JitterCacheMixin, TemplateView): # update main_page counter for event in events: event.main.link.log(self.request, 1) - exposition_themes = Theme.objects.language().order_by('-main_page').filter(types=Theme.types.exposition)[:6] - conference_themes = Theme.objects.language().order_by('-main_page').filter(types=Theme.types.conference)[:6] + exposition_themes = Theme.objects.language().filter(main_page=True).order_by('-main_page').filter(types=Theme.types.exposition)[:6] + conference_themes = Theme.objects.language().filter(main_page=True).order_by('-main_page').filter(types=Theme.types.conference)[:6] args = {'events': events, 'exposition_themes': exposition_themes, 'conference_themes': conference_themes, 'search_form': ExpositionSearchForm, 'search_action': '/expo/search/',