summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-08-03 16:01:52 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-08-03 16:01:52 -0300
commita8b2fc84ba96c83ec1addf89ac04608fbf572705 (patch)
tree6f54cbe43b8684908f2e80ba311272c06fd0fd08 /public
parent294bf173236610fc8c308f81d8617e7e0d0e4bff (diff)
parentb0bad20756549df5edf726771c8e6869caba6244 (diff)
Merge branch 'master' of git://projects.archlinux.org/archweb
Conflicts: templates/base.html
Diffstat (limited to 'public')
-rw-r--r--public/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/public/utils.py b/public/utils.py
index fd29a845..0be3ebaa 100644
--- a/public/utils.py
+++ b/public/utils.py
@@ -1,6 +1,6 @@
from operator import attrgetter
-from main.models import Arch, Package
+from main.models import Arch, Package, Repo
from main.utils import cache_function
class RecentUpdate(object):
@@ -57,8 +57,8 @@ def get_recent_updates(number=15):
# grab a few extra so we can hopefully catch everything we need
fetch = number * 6
for arch in Arch.objects.all():
- pkgs += list(Package.objects.select_related(
- 'arch', 'repo').filter(arch=arch).order_by('-last_update')[:fetch])
+ pkgs += list(Package.objects.normal().filter(
+ arch=arch).order_by('-last_update')[:fetch])
pkgs.sort(key=attrgetter('last_update'))
updates = []