summaryrefslogtreecommitdiff
path: root/public/views.py
diff options
context:
space:
mode:
authorIsmael Carnales <icarnales@gmail.com>2009-10-31 14:12:03 -0200
committerIsmael Carnales <icarnales@gmail.com>2009-11-09 22:24:50 -0200
commita008b0de807fab5285cd481a8a227ae06b1e1c19 (patch)
tree8f49da4348d7ca005ea45e4038409d5debb31bd4 /public/views.py
parent129255e79ce0d226fa30920a718935b61a847e61 (diff)
corrected context variable names in index view
Diffstat (limited to 'public/views.py')
-rw-r--r--public/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/public/views.py b/public/views.py
index 30fb2902..e301aaef 100644
--- a/public/views.py
+++ b/public/views.py
@@ -9,9 +9,9 @@ from django.views.generic import list_detail
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,