summaryrefslogtreecommitdiff
path: root/feeds.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-05-04 10:02:54 -0500
committerDan McGee <dan@archlinux.org>2010-05-04 10:03:00 -0500
commit2b1256434c8fb50e695b9cbaec3f178706a7d5cd (patch)
tree6e404dce4eb7fe750c6d78d39729edff31a6a063 /feeds.py
parent58566e82d9ebed58caeba85ae68d346cf6b15f90 (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.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/feeds.py b/feeds.py
index 47ef4b1d..32190a7b 100644
--- a/feeds.py
+++ b/feeds.py
@@ -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: