27 from django.db
import models
28 from clm.utils.exception
import CLMException
40 topic = models.CharField(max_length=255)
42 content = models.TextField()
44 sticky = models.IntegerField()
46 date = models.DateTimeField()
72 d[
'news_id'] = self.id
73 d[
'topic'] = self.
topic
90 news = News.objects.get(pk=news_id)
92 raise CLMException(
'news_get')