Skip to content

Commit

Permalink
Fix feed_url creation in blog_feed view.
Browse files Browse the repository at this point in the history
The url_name variable included a trailing comma, which made it a tuple, which is an invalid arg for reverse().
  • Loading branch information
joeydi committed Mar 22, 2016
1 parent 4795fb1 commit b3b11a3
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 b3b11a3

Please sign in to comment.