removendo variável desnecessária do contexto
authorLincoln de Sousa <pythonwarrior@pidinti.localdomain>
Thu, 9 Aug 2007 13:22:02 +0000 (10:22 -0300)
committerLincoln de Sousa <pythonwarrior@pidinti.localdomain>
Thu, 9 Aug 2007 13:22:02 +0000 (10:22 -0300)
views.py

index ac2f4dc..1d97374 100644 (file)
--- 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)
     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))
         'index_sections': index_sections})
     return render_to_response('index.html', c,
             context_instance=RequestContext(request))