summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/public/utils.py b/public/utils.py
index bf74881a..c2838212 100644
--- a/public/utils.py
+++ b/public/utils.py
@@ -49,6 +49,10 @@ class RecentUpdate(object):
if package.arch not in arches and not arches.add(package.arch):
yield PackageStandin(package)
+ def __unicode__(self):
+ return "RecentUpdate '%s %s' <%d packages>" % (
+ self.pkgbase, self.version, len(self.packages))
+
@cache_function(62)
def get_recent_updates(number=15, testing=True, staging=False):
repos = Repo.objects.all()