Skip to content

Commit

Permalink
Overcomes the import problem caused by version differences in naming …
Browse files Browse the repository at this point in the history
…django.contrib.syndication.views.feed/Feed
  • Loading branch information
aladagemre committed Apr 25, 2012
1 parent d50bdfb commit 2927346
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion notification/views.py
Expand Up @@ -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
Expand Down

0 comments on commit 2927346

Please sign in to comment.