summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--public/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/public/utils.py b/public/utils.py
index bf74881..c283821 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()