Updating models to __str__
1 files changed, 3 insertions(+), 3 deletions(-)

M trello_broker/models.py
M trello_broker/models.py +3 -3
@@ 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())