dispatch: unicode_literals in models

This commit is contained in:
Brian S. Stephan 2015-06-19 21:07:45 -05:00
parent 1193ce5b6a
commit 1c88aa1189
1 changed files with 4 additions and 2 deletions

View File

@ -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)