summaryrefslogtreecommitdiffstats
path: root/hyperkitty/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'hyperkitty/models.py')
-rw-r--r--hyperkitty/models.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/hyperkitty/models.py b/hyperkitty/models.py
index 40eb9e3..370908f 100644
--- a/hyperkitty/models.py
+++ b/hyperkitty/models.py
@@ -67,4 +67,14 @@ class Tag(models.Model):
def __unicode__(self):
"""Unicode representation"""
- return u'threadid = %s , tag = %s ' % (unicode(self.list_address), unicode(self.threadid))
+ return u'threadid = %s , tag = %s ' % (unicode(self.threadid), unicode(self.tag))
+
+
+class Favorite(models.Model):
+ list_address = models.CharField(max_length=50)
+ threadid = models.CharField(max_length=100)
+ user = models.ForeignKey(User)
+
+ def __unicode__(self):
+ """Unicode representation"""
+ return u'thread %s for user %s' % (unicode(self.threadid), unicode(self.user))