Skip to content

Commit

Permalink
get_current_site compatibility (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
urtzai authored and rizumu committed Mar 23, 2017
1 parent 27b6f47 commit 89f74b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion podcasting/feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
from django.utils.feedgenerator import rfc2822_date, Rss201rev2Feed, Atom1Feed
from django.shortcuts import get_object_or_404

from django.contrib.sites.models import get_current_site
try:
from django.contrib.sites.models import get_current_site
except ImportError:
from django.contrib.sites.shortcuts import get_current_site
from django.contrib.syndication.views import Feed
from django.views.generic.base import RedirectView

Expand Down

0 comments on commit 89f74b2

Please sign in to comment.