From b3b11a39763cb3073f0fd29cbf395cf9a6d88d3b Mon Sep 17 00:00:00 2001 From: Joe di Stefano Date: Tue, 22 Mar 2016 10:44:22 -0400 Subject: [PATCH] Fix feed_url creation in blog_feed view. The url_name variable included a trailing comma, which made it a tuple, which is an invalid arg for reverse(). --- pinax/blog/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pinax/blog/views.py b/pinax/blog/views.py index 344149a..4ce10bc 100644 --- a/pinax/blog/views.py +++ b/pinax/blog/views.py @@ -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