Explorar el Código

Corrected Unicode display of ExportTemplates

Jeremy Stretch hace 9 años
padre
commit
88b022d742
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      netbox/extras/models.py

+ 1 - 1
netbox/extras/models.py

@@ -77,7 +77,7 @@ class ExportTemplate(models.Model):
         ]
 
     def __unicode__(self):
-        return "{}: {}".format(self.content_type, self.name)
+        return u'{}: {}'.format(self.content_type, self.name)
 
     def to_response(self, context_dict, filename):
         """