Преглед на файлове

Corrected Unicode display of ExportTemplates

Jeremy Stretch преди 9 години
родител
ревизия
88b022d742
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      netbox/extras/models.py

+ 1 - 1
netbox/extras/models.py

@@ -77,7 +77,7 @@ class ExportTemplate(models.Model):
         ]
         ]
 
 
     def __unicode__(self):
     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):
     def to_response(self, context_dict, filename):
         """
         """