Fix python 2.6 compatibility

This commit is contained in:
Christopher Grebs
2014-05-26 14:52:46 +02:00
parent 15e3fb88bf
commit e4a79e1d62
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -83,7 +83,7 @@ class GenericNote(SimpleModel, Sortable):
pass
def __unicode__(self):
return u'{}: {}'.format(self.title, self.content_object)
return u'{0}: {1}'.format(self.title, self.content_object)
# An model registered as an inline that has a custom queryset
@@ -115,4 +115,4 @@ class Person(Sortable):
)
def __unicode__(self):
return '{} {}'.format(self.first_name, self.last_name)
return '{0} {1}'.format(self.first_name, self.last_name)