diff options
author | Dan McGee <dan@archlinux.org> | 2010-05-04 10:02:54 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-05-04 10:03:00 -0500 |
commit | 2b1256434c8fb50e695b9cbaec3f178706a7d5cd (patch) | |
tree | 6e404dce4eb7fe750c6d78d39729edff31a6a063 /feeds.py | |
parent | 58566e82d9ebed58caeba85ae68d346cf6b15f90 (diff) |
feeds: move link from method to attribute
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'feeds.py')
-rw-r--r-- | feeds.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -5,6 +5,8 @@ from django.db.models import Q from main.models import Arch, Repo, Package, News class PackageFeed(Feed): + link = '/packages/' + def get_object(self, bits): # just cut the BS early if len(bits) > 2: @@ -34,9 +36,6 @@ class PackageFeed(Feed): s += ' (%s)' % (obj['arch'].name) return s - def link(self, obj): - return '/packages/' - def description(self, obj): s = 'Recently updated packages in the Arch Linux package repositories' if 'arch' in obj: |