Skip to content

Commit

Permalink
Static import fix for Django 3
Browse files Browse the repository at this point in the history
  • Loading branch information
KalobTaulien authored and gasman committed Mar 17, 2020
1 parent f0a42f8 commit da203a8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion wagtail_transfer/wagtail_hooks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
from django.conf import settings
from django.conf.urls import url, include
from django.contrib.staticfiles.templatetags.staticfiles import static
try:
# Django 2
from django.contrib.staticfiles.templatetags.staticfiles import static
except ImportError:
# Django 3
from django.templatetags.static import static

from django.urls import reverse
from django.utils.html import format_html

Expand Down

0 comments on commit da203a8

Please sign in to comment.