Author: jbronn
Date: 2008-09-02 12:13:39 -0500 (Tue, 02 Sep 2008)
New Revision: 8860

Modified:
   django/trunk/django/contrib/gis/sitemaps/georss.py
Log:
Fixed `GeoRSSSitemap` to no longer use both `args` and `kwargs` with 
`urlresolvers.reverse` (no longer allowed since r8760).


Modified: django/trunk/django/contrib/gis/sitemaps/georss.py
===================================================================
--- django/trunk/django/contrib/gis/sitemaps/georss.py  2008-09-02 16:52:42 UTC 
(rev 8859)
+++ django/trunk/django/contrib/gis/sitemaps/georss.py  2008-09-02 17:13:39 UTC 
(rev 8860)
@@ -32,7 +32,7 @@
         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 @@
         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,))
+


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to