summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bronn <jbronn@gmail.com>2008-09-02 17:13:39 +0000
committerJustin Bronn <jbronn@gmail.com>2008-09-02 17:13:39 +0000
commit326b26656aa3770be99da88dd76e7eb9c73d1dc5 (patch)
tree053a96d055a48910d52d81a674a1697db5e8ba26
parent24d7b498499bc09b0aa13015569044d7d8c97cf1 (diff)
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
-rw-r--r--django/contrib/gis/sitemaps/georss.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/gis/sitemaps/georss.py b/django/contrib/gis/sitemaps/georss.py
index ecd1171842..aca53a43c9 100644
--- a/django/contrib/gis/sitemaps/georss.py
+++ b/django/contrib/gis/sitemaps/georss.py
@@ -32,7 +32,7 @@ class GeoRSSSitemap(Sitemap):
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 @@ class GeoRSSSitemap(Sitemap):
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,))
+