diff --git a/horizon/templatetags/shellfilter.py b/horizon/templatetags/shellfilter.py index bb64205da..108ca6204 100644 --- a/horizon/templatetags/shellfilter.py +++ b/horizon/templatetags/shellfilter.py @@ -10,11 +10,15 @@ # License for the specific language governing permissions and limitations # under the License. -from django.template import base +import django +from django import template from django.template import defaultfilters from django.utils import safestring -register = base.Library() +if django.VERSION >= (1, 9): + register = template.Library() +else: + register = template.base.Library() @register.filter(is_safe=True)