Skip to content

Commit

Permalink
Python 2.6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
paltman committed Oct 24, 2014
1 parent 2439585 commit 96b37d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion phileo/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ class Meta:
)

def __str__(self):
return "{} likes {}".format(self.sender, self.receiver)
return "{0} likes {1}".format(self.sender, self.receiver)
4 changes: 2 additions & 2 deletions phileo/templatetags/phileo_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def render(self, context):
}

return render_to_string([
'phileo/{}/{}.html'.format(app_name, model_name),
'phileo/{}/like.html'.format(app_name),
'phileo/{0}/{1}.html'.format(app_name, model_name),
'phileo/{0}/like.html'.format(app_name),
'phileo/_like.html',
], like_context, context)

Expand Down

0 comments on commit 96b37d5

Please sign in to comment.