diff options
author | Ismael Carnales <icarnales@gmail.com> | 2009-10-31 14:12:03 -0200 |
---|---|---|
committer | Ismael Carnales <icarnales@gmail.com> | 2009-11-09 22:24:50 -0200 |
commit | a008b0de807fab5285cd481a8a227ae06b1e1c19 (patch) | |
tree | 8f49da4348d7ca005ea45e4038409d5debb31bd4 /public/views.py | |
parent | 129255e79ce0d226fa30920a718935b61a847e61 (diff) |
corrected context variable names in index view
Diffstat (limited to 'public/views.py')
-rw-r--r-- | public/views.py | 6 |
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, |