X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=views.py;h=1d973745a9110ec1e9100c5c7ae6e173ec512e7f;hb=b4ceb1def210ed357e3cd138512802b0575a4a0d;hp=ac2f4dc32f49e3a370ae8543b1a12ea266ef6d82;hpb=55f829952598de38c69be652ed5dff6560523ae5;p=cascardo%2Feventmanager.git 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))