From a008b0de807fab5285cd481a8a227ae06b1e1c19 Mon Sep 17 00:00:00 2001 From: Ismael Carnales Date: Sat, 31 Oct 2009 14:12:03 -0200 Subject: corrected context variable names in index view --- public/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'public') 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 @@ 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, -- cgit v1.2.3-54-g00ecf