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