Copy the default django patterns rather than modifying them
This prevents an ever-growing list of urls in the case that
getDjangoURLPatterns is called multiple times.
Patch by: Sverre Rabbelier
--- a/app/soc/views/sitemap/sitemap.py Fri Jan 30 21:58:31 2009 +0000
+++ b/app/soc/views/sitemap/sitemap.py Fri Jan 30 21:58:53 2009 +0000
@@ -58,7 +58,8 @@
return params['django_patterns']
# Construct defaults manualy
- default_patterns = params['django_patterns_defaults']
+ default_django_patterns = params['django_patterns_defaults']
+ default_patterns = default_django_patterns[:]
default_patterns += params['extra_django_patterns']
patterns = []