dispatch: unicode_literals in models
This commit is contained in:
parent
1193ce5b6a
commit
1c88aa1189
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user