summaryrefslogtreecommitdiffstats
path: root/public/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'public/views.py')
-rw-r--r--public/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/views.py b/public/views.py
index b44b02a..7f703c4 100644
--- a/public/views.py
+++ b/public/views.py
@@ -10,7 +10,7 @@ from django.views.generic import list_detail
def index(request):
context = {
'news_updates': News.objects.order_by('-postdate', '-id')[:10],
- 'pkg_updates': Package.objects.order_by('-last_update')[:15],
+ 'pkg_updates': Package.objects.select_related('arch', 'repo').order_by('-last_update')[:15],
'repos': Repo.objects.all()
}
return render_to_response('public/index.html', context,