diff options
author | Dan McGee <dan@archlinux.org> | 2012-12-21 19:11:47 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-12-27 19:59:52 -0600 |
commit | 730ac948b5dfb70646fad96cd7bad0453b9f0cea (patch) | |
tree | fca28b38b64494d121f70123d8d76952fd2d5371 | |
parent | a993295002ad36b40c49619e892de6e78aa00c06 (diff) |
Add a __unicode__ method for RecentUpdate
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | public/utils.py | 4 |
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() |