From 0312f243e4cbd7bf9ff26ae761a5e212feedf5b6 Mon Sep 17 00:00:00 2001
From: David Sanders <dsanders11@ucsbalum.com>
Date: Tue, 13 Oct 2015 18:06:58 -0700
Subject: [PATCH] Add lazy version of admin_static's static
---
django/contrib/admin/templatetags/admin_static.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/django/contrib/admin/templatetags/admin_static.py b/django/contrib/admin/templatetags/admin_static.py
index b767dc7..1d47e82 100644
a
|
b
|
|
1 | 1 | from django.apps import apps |
2 | 2 | from django.template import Library |
| 3 | from django.utils.functional import lazy |
3 | 4 | |
4 | 5 | register = Library() |
5 | 6 | |
… |
… |
def static(path):
|
15 | 16 | else: |
16 | 17 | from django.templatetags.static import static as _static |
17 | 18 | return _static(path) |
| 19 | |
| 20 | |
| 21 | static_lazy = lazy(static, str) |