From 92207b30198f73f7a7de09daa2963fbc922894b3 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Tue, 27 Oct 2009 10:37:20 -0400 Subject: [PATCH] fix, not sure why this is necessary --- friends/templatetags/friends_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/friends/templatetags/friends_tags.py b/friends/templatetags/friends_tags.py index 4898335..57cf299 100644 --- a/friends/templatetags/friends_tags.py +++ b/friends/templatetags/friends_tags.py @@ -20,7 +20,7 @@ def render(self, context): else: status = FriendshipInvitation.objects.invitation_status(user1, user2) if status is not None: - status = INVITE_STATUS[status-1] + status = INVITE_STATUS[int(status)-1] if self.varname: context[self.varname] = status return ''