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
This commit is contained in:
Justin Bronn 2008-09-02 17:13:39 +00:00
parent 24d7b49849
commit 326b26656a
1 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ class GeoRSSSitemap(Sitemap):
for section in feed_dict.keys(): for section in feed_dict.keys():
if slug_dict.get(section, False): if slug_dict.get(section, False):
for slug in slug_dict[section]: for slug in slug_dict[section]:
self.locations.append(('%s/%s' % (section, slug))) self.locations.append('%s/%s' % (section, slug))
else: else:
self.locations.append(section) self.locations.append(section)
@ -49,5 +49,5 @@ class GeoRSSSitemap(Sitemap):
return self.locations return self.locations
def location(self, obj): def location(self, obj):
return urlresolvers.reverse('django.contrib.syndication.views.feed', return urlresolvers.reverse('django.contrib.syndication.views.feed', args=(obj,))
args=(obj,), kwargs={'feed_dict' : self.feed_dict})