@@ 20,7 20,7 @@ class BaseModel(models.Model):
class Meta:
abstract = True
- def __unicode__(self):
+ def __str__(self):
return getattr(self, 'name', u'')
def save(self, *args, **kwargs):
@@ 142,7 142,7 @@ class TrelloList(BaseModel):
self.status = int(json_data['closed'])
self.save()
- def __unicode__(self):
+ def __str__(self):
return u'{0}: {1}'.format(self.trello_board.name, self.name)
@@ 233,5 233,5 @@ class BitBucketRule(BaseModel):
verbose_name_plural = 'BitBucket Rules'
unique_together = ('repo', 'action')
- def __unicode__(self):
+ def __str__(self):
return u'{0}: {1}'.format(self.repo.name, self.get_action_display())