From ada08cd6d824e4cee976d3c3b68b0d153b403eee Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Wed, 16 Feb 2011 12:50:57 +0000 Subject: Fixed #15314 -- Added tests for the static URL pattern function added in r15530 and made sure the **kwargs are passed to the view correctly. Thanks for the report and initial patch, Bruno ReniƩ. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://code.djangoproject.com/svn/django/trunk@15552 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/conf/urls/static.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django') diff --git a/django/conf/urls/static.py b/django/conf/urls/static.py index f90b8b5cab..ff1942f990 100644 --- a/django/conf/urls/static.py +++ b/django/conf/urls/static.py @@ -22,5 +22,5 @@ def static(prefix, view='django.views.static.serve', **kwargs): elif '://' in prefix: raise ImproperlyConfigured("URL '%s' not allowed as static prefix" % prefix) return patterns('', - url(r'^%s(?P.*)$' % re.escape(prefix.lstrip('/')), view, **kwargs), + url(r'^%s(?P.*)$' % re.escape(prefix.lstrip('/')), view, kwargs=kwargs), ) -- cgit v1.3