Skip to content

Commit

Permalink
Fixed GeoRSSSitemap to no longer use both args and kwargs with …
Browse files Browse the repository at this point in the history
…`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
jbronn committed Sep 2, 2008
1 parent 24d7b49 commit 326b266
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django/contrib/gis/sitemaps/georss.py
Expand Up @@ -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)

Expand All @@ -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,))

0 comments on commit 326b266

Please sign in to comment.