Placate a deprecation warning from Django by importing 'static' from a different module

This commit is contained in:
Danielle McLean 2019-01-24 12:28:55 +11:00
父節點 594947852f
當前提交 1bf0d8478a
簽署人: 00dani
GPG 金鑰 ID: 8EB789DDF3ABD240
共有 1 個檔案被更改,包括 1 行新增1 行删除

查看文件

@ -1,5 +1,5 @@
from django.views.generic.base import RedirectView
from django.contrib.staticfiles.templatetags.staticfiles import static
from django.templatetags.static import static
def redirect_to_static(file):