Skip to content

Commit

Permalink
Fix model strings
Browse files Browse the repository at this point in the history
  • Loading branch information
paltman committed Jul 4, 2014
1 parent 573ea8d commit 0d2ad08
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion teams/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ class Team(models.Model):
def get_absolute_url(self):
return ("team_detail", [self.slug])

def __str__(self):
return self.name

def __unicode__(self):
return self.name

Expand Down Expand Up @@ -257,9 +260,12 @@ def status(self):
def invitee(self):
return self.user or self.invite.to_user_email

def __unicode__(self):
def __str__(self):
return "{0} in {1}".format(self.user, self.team)

def __unicode__(self):
return u"{0} in {1}".format(self.user, self.team)

class Meta:
unique_together = [("team", "user", "invite")]

Expand Down

0 comments on commit 0d2ad08

Please sign in to comment.