diff options
| author | Jannis Leidel <jannis@leidel.info> | 2013-02-23 14:35:52 +0100 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2013-02-23 14:42:11 +0100 |
| commit | f96dd05542885d9839d4c79639164551e1f01563 (patch) | |
| tree | 756314d6ea5d86b8e321f0789322e7707f731017 | |
| parent | 251f345db68278547fae520632765dc229a02a18 (diff) | |
[1.5.X] Fixed #19850 -- Use configured staticfiles storage to find the URL of a static file in the admin.
| -rw-r--r-- | django/contrib/staticfiles/templatetags/staticfiles.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/staticfiles/templatetags/staticfiles.py b/django/contrib/staticfiles/templatetags/staticfiles.py index 71339ea8cd..ab922757e2 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) |
