euscanwww/feeds: remove duplicate descriptions
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
This commit is contained in:
parent
37a9a742c3
commit
d5a9b31b3c
@ -66,9 +66,6 @@ class PackageFeed(BaseFeed):
|
|||||||
def title(self, package):
|
def title(self, package):
|
||||||
return "%s" % package
|
return "%s" % package
|
||||||
|
|
||||||
def description(self, package):
|
|
||||||
return "Last changes for %s" % package
|
|
||||||
|
|
||||||
def link(self, package):
|
def link(self, package):
|
||||||
return reverse('euscan.views.package', args=[package.category, package.name])
|
return reverse('euscan.views.package', args=[package.category, package.name])
|
||||||
|
|
||||||
@ -96,9 +93,6 @@ class MaintainerFeed(BaseFeed):
|
|||||||
def link(self, maintainer):
|
def link(self, maintainer):
|
||||||
return reverse('euscan.views.maintainer', kwargs={'maintainer_id' : maintainer.id})
|
return reverse('euscan.views.maintainer', kwargs={'maintainer_id' : maintainer.id})
|
||||||
|
|
||||||
def description(self, maintainer):
|
|
||||||
return str(maintainer)
|
|
||||||
|
|
||||||
def items(self, maintainer):
|
def items(self, maintainer):
|
||||||
q = VersionLog.objects.filter(package__maintainers__id=maintainer.id)
|
q = VersionLog.objects.filter(package__maintainers__id=maintainer.id)
|
||||||
return q.order_by('-id')[:50]
|
return q.order_by('-id')[:50]
|
||||||
@ -118,9 +112,6 @@ class HerdFeed(BaseFeed):
|
|||||||
def link(self, herd):
|
def link(self, herd):
|
||||||
return reverse('euscan.views.herd', kwargs={'herd' : herd.herd})
|
return reverse('euscan.views.herd', kwargs={'herd' : herd.herd})
|
||||||
|
|
||||||
def description(self, herd):
|
|
||||||
return str(herd)
|
|
||||||
|
|
||||||
def items(self, herd):
|
def items(self, herd):
|
||||||
q = VersionLog.objects.filter(package__herds__id=herd.id)
|
q = VersionLog.objects.filter(package__herds__id=herd.id)
|
||||||
return q.order_by('-id')[:100]
|
return q.order_by('-id')[:100]
|
||||||
|
Loading…
Reference in New Issue
Block a user