Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Overcomes the import problem caused by version differences in naming …

…django.contrib.syndication.views.feed/Feed
  • Loading branch information...
commit 2927346f4c513a217ac8ad076e494dd1adbf70e1 1 parent d50bdfb
@aladagemre authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 notification/views.py
View
6 notification/views.py
@@ -4,8 +4,12 @@
from django.template import RequestContext
from django.contrib.auth.decorators import login_required
-from django.contrib.syndication.views import feed
+try:
+ from django.contrib.syndication.views import feed
+except ImportError:
+ from django.contrib.syndication.views import Feed as feed
+
from notification.models import *
from notification.decorators import basic_auth_required, simple_basic_auth_callback
from notification.feeds import NoticeUserFeed
Please sign in to comment.
Something went wrong with that request. Please try again.