Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Justin Bronn authored September 02, 2008

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  django/contrib/gis/sitemaps/georss.py
6  django/contrib/gis/sitemaps/georss.py
@@ -32,7 +32,7 @@ def __init__(self, feed_dict, slug_dict=None):
32 32
         for section in feed_dict.keys():
33 33
             if slug_dict.get(section, False):
34 34
                 for slug in slug_dict[section]:
35  
-                    self.locations.append(('%s/%s' % (section, slug)))
  35
+                    self.locations.append('%s/%s' % (section, slug))
36 36
             else:
37 37
                 self.locations.append(section)
38 38
  
@@ -49,5 +49,5 @@ def items(self):
49 49
         return self.locations
50 50
 
51 51
     def location(self, obj):
52  
-        return urlresolvers.reverse('django.contrib.syndication.views.feed',
53  
-                                    args=(obj,), kwargs={'feed_dict' : self.feed_dict})
  52
+        return urlresolvers.reverse('django.contrib.syndication.views.feed', args=(obj,))
  53
+

0 notes on commit 326b266

Please sign in to comment.
Something went wrong with that request. Please try again.