From f40cdb5d1a55c67bb7a85441cd08d476442e94cf Mon Sep 17 00:00:00 2001 From: Anurag Sharma Date: Sat, 31 May 2014 20:56:39 +0530 Subject: [PATCH] Added unicode --- ribbit_app/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ribbit_app/models.py b/ribbit_app/models.py index 7f207bd..105d32e 100644 --- a/ribbit_app/models.py +++ b/ribbit_app/models.py @@ -8,6 +8,9 @@ class Ribbit(models.Model): user = models.ForeignKey(User) creation_date = models.DateTimeField(auto_now=True, blank=True) + def __unicode__(self): + return str(self.id) + class UserProfile(models.Model): user = models.OneToOneField(User) follows = models.ManyToManyField('self', related_name='followed_by', symmetrical=False)