From 5137c043eda57da1aa976aafe4fe26ac449e9742 Mon Sep 17 00:00:00 2001 From: Quantum Date: Wed, 26 Aug 2015 16:38:26 -0400 Subject: [PATCH] Make static work with CachedStaticFilesStorage `django.templatetags.static.static` doesn't return the hashed URL, but `django.contrib.staticfiles.templatetags.staticfiles.static` does. --- django_select2/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_select2/media.py b/django_select2/media.py index 1c9d55d..ccfb427 100644 --- a/django_select2/media.py +++ b/django_select2/media.py @@ -1,5 +1,5 @@ from django.conf import settings -from django.templatetags.static import static +from django.contrib.staticfiles.templatetags.staticfiles import static from . import __BOOTSTRAP as BOOTSTRAP