boostrap 1
[ifgu.git] / project / feeds.py
1 # -*- encoding: utf-8 -*
2 from django.contrib.syndication.feeds import Feed
3 from article.models import Actualite
4
5 class DerniereActualites(Feed):
6 title = "Actualite IFGU"
7 description = "Liste des dernières actualités"
8 link = "/flux/actualite/"
9
10 def items(self):
11 return Actualite.objects.all()[:10]