projects
/
cascardo
/
eventmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
55f8299
)
removendo variável desnecessária do contexto
author
Lincoln de Sousa
<pythonwarrior@pidinti.localdomain>
Thu, 9 Aug 2007 13:22:02 +0000
(10:22 -0300)
committer
Lincoln de Sousa
<pythonwarrior@pidinti.localdomain>
Thu, 9 Aug 2007 13:22:02 +0000
(10:22 -0300)
views.py
patch
|
blob
|
history
diff --git
a/views.py
b/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))