Skip to content

Commit

Permalink
Merge pull request #82 from joeydi/blog_feed
Browse files Browse the repository at this point in the history
Fix feed_url creation in blog_feed view.
  • Loading branch information
paltman committed Mar 22, 2016
2 parents 4795fb1 + b3b11a3 commit e865c47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pinax/blog/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,8 @@ def blog_feed(request, section=None, feed_type=None):

current_site = Site.objects.get_current()
blog_url = "http://%s%s" % (current_site.domain, reverse("pinax_blog:blog"))
url_name = "pinax_blog:blog_feed",
kwargs = {"section": section.slug if section != "all" else "all", "feed_type": feed_type}
feed_url = "http://%s%s" % (current_site.domain, reverse(url_name, kwargs=kwargs))
feed_url = "http://%s%s" % (current_site.domain, reverse("pinax_blog:blog_feed", kwargs=kwargs))

if posts:
feed_updated = posts[0].updated
Expand Down

0 comments on commit e865c47

Please sign in to comment.