corrected context variable names in index view

This commit is contained in:
Ismael Carnales 2009-10-31 14:12:03 -02:00
parent 129255e79c
commit a008b0de80

View File

@ -9,9 +9,9 @@
def index(request):
context = {
'news': News.objects.order_by('-postdate', '-id')[:10],
'pkgs': Package.objects.exclude(repo__name__iexact='testing').order_by(
'-last_update')[:15],
'news_updates': News.objects.order_by('-postdate', '-id')[:10],
'pkg_updates': Package.objects.exclude(
repo__name__iexact='testing').order_by('-last_update')[:15],
'repos': Repo.objects.all()
}
return render_to_response('public/index.html', context,