Updated string formatting on multiple foreign key exception.
This commit is contained in:
@@ -53,7 +53,7 @@ class Sortable(models.Model):
|
||||
sortable_foreign_keys.append(field)
|
||||
if len(sortable_foreign_keys) > 1:
|
||||
raise MultipleSortableForeignKeyException(
|
||||
u'%s may only have one SortableForeignKey' % self)
|
||||
u'{} may only have one SortableForeignKey'.format(self))
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
if not self.id:
|
||||
|
||||
Reference in New Issue
Block a user