fixed autosubscribe

This commit is contained in:
Rocky Duan
2012-08-22 14:11:19 -07:00
parent 3b76fe16d8
commit 3cbaba1961
4 changed files with 5 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
from utils import *
from thread import Thread
import models
import settings
@@ -23,6 +24,10 @@ class Comment(models.Model):
base_url = "{prefix}/comments".format(prefix=settings.PREFIX)
type = 'comment'
@property
def thread(self):
return Thread(id=self.thread_id, type='thread')
@classmethod
def url_for_comments(cls, params={}):
if params.get('thread_id'):