diff options
Diffstat (limited to 'feeds.py')
-rw-r--r-- | feeds.py | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -14,6 +14,7 @@ # along with celcatsanitizer. If not, see <http://www.gnu.org/licenses/>. from django.core.exceptions import ObjectDoesNotExist +from django.conf import settings from django.contrib.syndication.views import Feed from django.db.models import Q from django.template import loader @@ -76,10 +77,7 @@ class IcalFeed(Feed): "location": format_rooms(item.rooms.all())} -class AtomFeed(Feed): - author_name = "CelcatSanitizer" - feed_type = Atom1Feed - +class RSSFeed(Feed): def get_object(self, request, year_slug, timetable_slug, group_slug): year, week = get_current_or_next_week() try: @@ -121,3 +119,9 @@ class AtomFeed(Feed): update.description = template.render(context) return obj[1] + + +class AtomFeed(RSSFeed): + author_name = settings.ADMINS[0][0] + author_email = settings.ADMINS[0][1] + feed_type = Atom1Feed |