From c12891e8cd629cc16fc5d22e485b87ca3169df2c Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Sat, 23 Feb 2013 14:35:52 +0100 Subject: [PATCH] Fixed #19850 -- Use configured staticfiles storage to find the URL of a static file in the admin. --- django/contrib/staticfiles/templatetags/staticfiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/staticfiles/templatetags/staticfiles.py b/django/contrib/staticfiles/templatetags/staticfiles.py index 71339ea8cd4..ab922757e20 100644 --- a/django/contrib/staticfiles/templatetags/staticfiles.py +++ b/django/contrib/staticfiles/templatetags/staticfiles.py @@ -34,4 +34,4 @@ def do_static(parser, token): def static(path): - return StaticNode.handle_simple(path) + return staticfiles_storage.url(path)