Skip to content

Commit

Permalink
Add __str__ to python2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nsurbay committed Nov 14, 2017
1 parent 3fe3738 commit d22c021
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tracker/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ class ReadState(models.Model):
class Meta:
unique_together = ('issue', 'user')

def __str__(self):
return "%s : User=%s lastread=%s" % (self.issue, self.user, self.lastread)


@python_2_unicode_compatible
class Event(models.Model):
Expand Down

0 comments on commit d22c021

Please sign in to comment.