Skip to content

Commit 037914d

Browse files
committed
Import Context from django.template.context
It was available as django.template.base.Context for backwards compatibility but was removed in Django 3.1
1 parent 08b2a4e commit 037914d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pipeline/templatetags/pipeline.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
from django.contrib.staticfiles.storage import staticfiles_storage
55

66
from django import template
7-
from django.template.base import Context, VariableDoesNotExist
7+
from django.template.context import Context
8+
from django.template.base import VariableDoesNotExist
89
from django.template.loader import render_to_string
910
from django.utils.safestring import mark_safe
1011

0 commit comments

Comments
 (0)