From 1c88aa1189b1e0801fe1a2d39fa810194d6a8a15 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Fri, 19 Jun 2015 21:07:45 -0500 Subject: [PATCH] dispatch: unicode_literals in models --- dr_botzo/dispatch/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dr_botzo/dispatch/models.py b/dr_botzo/dispatch/models.py index 23d286a..10b3183 100644 --- a/dr_botzo/dispatch/models.py +++ b/dr_botzo/dispatch/models.py @@ -1,5 +1,7 @@ """Track dispatcher configurations.""" +from __future__ import unicode_literals + import logging from django.db import models @@ -22,7 +24,7 @@ class Dispatcher(models.Model): def __unicode__(self): """String representation.""" - return u"{0:s}".format(self.key) + return "{0:s}".format(self.key) class DispatcherAction(models.Model): @@ -44,4 +46,4 @@ class DispatcherAction(models.Model): def __unicode__(self): """String representation.""" - return u"{0:s} -> {1:s} {2:s}".format(self.dispatcher.key, self.type, self.destination) + return "{0:s} -> {1:s} {2:s}".format(self.dispatcher.key, self.type, self.destination)