瀏覽代碼

Fixes #1151: name 'escape' is not defined

Jeremy Stretch 9 年之前
父節點
當前提交
0fb12bcc9c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      netbox/dcim/views.py

+ 1 - 0
netbox/dcim/views.py

@@ -11,6 +11,7 @@ from django.db.models import Count
 from django.http import HttpResponseRedirect
 from django.shortcuts import get_object_or_404, redirect, render
 from django.urls import reverse
+from django.utils.html import escape
 from django.utils.http import urlencode
 from django.utils.safestring import mark_safe
 from django.views.generic import View