Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update feeds for Django 1.4 compatibility

  • Loading branch information...
commit e96e9aba6696e3d3910bf7045a7b7bfc79e3803b 1 parent 20fa136
@treyhunner treyhunner authored committed
Showing with 3 additions and 4 deletions.
  1. +2 −1  schedule/feeds/atom.py
  2. +1 −3 schedule/urls.py
View
3  schedule/feeds/atom.py
@@ -30,6 +30,7 @@
from xml.sax.saxutils import XMLGenerator
from datetime import datetime
+from django.contrib.syndication.views import Feed as _Feed
GENERATOR_TEXT = 'django-atompub'
@@ -70,7 +71,7 @@ def get_tag_uri(url, date):
## based on django.contrib.syndication.feeds.Feed
-class Feed(object):
+class Feed(_Feed):
VALIDATE = True
View
4 schedule/urls.py
@@ -90,9 +90,7 @@
#feed urls
-url(r'^feed/calendar/(.*)/$',
- 'django.contrib.syndication.views.feed',
- { "feed_dict": { "upcoming": UpcomingEventsFeed } }),
+url(r'^feed/calendar/(.*)/$', UpcomingEventsFeed()),
(r'^ical/calendar/(.*)/$', CalendarICalendar()),

0 comments on commit e96e9ab

Please sign in to comment.
Something went wrong with that request. Please try again.