From b4ceb1def210ed357e3cd138512802b0575a4a0d Mon Sep 17 00:00:00 2001 From: Lincoln de Sousa Date: Thu, 9 Aug 2007 10:22:02 -0300 Subject: [PATCH] =?utf8?q?removendo=20vari=C3=A1vel=20desnecess=C3=A1ria?= =?utf8?q?=20do=20contexto?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/views.py b/views.py index ac2f4dc..1d97374 100644 --- a/views.py +++ b/views.py @@ -34,9 +34,8 @@ def index(request): news = Noticia.objects.order_by('-data_criacao') menus = Menu.objects.all() index_sections = Secao.objects.filter(index=True) - menu_sections = Secao.objects.filter(index=False) - c = Context({'news': news, 'menu': menus, 'menu_sections': menu_sections, + c = Context({'news': news, 'menu': menus, 'index_sections': index_sections}) return render_to_response('index.html', c, context_instance=RequestContext(request)) -- 2.20.1