Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed `GeoRSSSitemap` to no longer use both `args` and `kwargs` with …

…`urlresolvers.reverse` (no longer allowed since r8760).

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8860 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 326b26656aa3770be99da88dd76e7eb9c73d1dc5 1 parent 24d7b49
@jbronn jbronn authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/contrib/gis/sitemaps/georss.py
View
6 django/contrib/gis/sitemaps/georss.py
@@ -32,7 +32,7 @@ def __init__(self, feed_dict, slug_dict=None):
for section in feed_dict.keys():
if slug_dict.get(section, False):
for slug in slug_dict[section]:
- self.locations.append(('%s/%s' % (section, slug)))
+ self.locations.append('%s/%s' % (section, slug))
else:
self.locations.append(section)
@@ -49,5 +49,5 @@ def items(self):
return self.locations
def location(self, obj):
- return urlresolvers.reverse('django.contrib.syndication.views.feed',
- args=(obj,), kwargs={'feed_dict' : self.feed_dict})
+ return urlresolvers.reverse('django.contrib.syndication.views.feed', args=(obj,))
+
Please sign in to comment.
Something went wrong with that request. Please try again.