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:
379bdbb
)
adicionando busca de noticias que apareceram na index
author
Lincoln de Sousa
<pythonwarrior@pidinti.localdomain>
Fri, 27 Jul 2007 14:55:45 +0000
(11:55 -0300)
committer
Lincoln de Sousa
<pythonwarrior@pidinti.localdomain>
Fri, 27 Jul 2007 14:55:45 +0000
(11:55 -0300)
views.py
patch
|
blob
|
history
diff --git
a/views.py
b/views.py
index
243bf30
..
8573791
100644
(file)
--- a/
views.py
+++ b/
views.py
@@
-20,10
+20,13
@@
from django.shortcuts import render_to_response
from django.template import RequestContext, Context
from eventmanager.decorators import enable_login_form
from eventmanager.forms import InscreverPalestra, CadastroPalestrante
+from eventmanager.conteudo.models import Noticia
@enable_login_form
def index(request):
- return render_to_response('index.html',
+ news = Noticia.objects.order_by('-data_criacao')
+ c = Context({'news': news})
+ return render_to_response('index.html', c,
context_instance=RequestContext(request))
@enable_login_form