Sfoglia il codice sorgente

Fixes #1151: name 'escape' is not defined

Jeremy Stretch 9 anni fa
parent
commit
0fb12bcc9c
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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