~kimus/linux.pt/trunk

« back to all changes in this revision

Viewing changes to python/linuxpt/apps/articles/feeds.py

  • Committer: kimus
  • Date: 2009-04-19 22:12:19 UTC
  • Revision ID: kimus-20090419221219-mgh5e73hudq9tsoo
minor fix on rss for articles

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from django.contrib.syndication.feeds import Feed
2
2
from django.utils.translation import ugettext_lazy as _
3
 
from linuxpt.apps.articles.models import ArticleModel
 
3
from linuxpt.apps.articles.models import Article
4
4
 
5
5
class ArticlesFeed(Feed):
6
6
    title = _("Articles")
8
8
    description = _("LINUX.PT Articles list")
9
9
 
10
10
    def items(self):
11
 
        return ArticleModel.objects.published()[:10]
 
11
        return Article.objects.published()[:10]