Skip to content

Commit

Permalink
Change string formatting to use format
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Vetter committed Jul 25, 2013
1 parent f3fcaee commit 171d14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fancypages/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class OrderedContainer(Container):
display_order = models.PositiveIntegerField()

def __unicode__(self):
return u"Container #%d '%s' in '%s'" % (
return u"Container #{0} '{1}' in '{2}'".format(
self.display_order,
self.name,
self.content_type
Expand Down

0 comments on commit 171d14e

Please sign in to comment.