bestpractices faq

This commit is contained in:
Sanj 2011-10-21 02:50:01 +01:00
parent 1209fbe342
commit 77d2154ca2

View File

@ -118,6 +118,8 @@ class BestPracticeFAQ(ItfModel):
question = models.TextField()
answer = models.TextField()
title_field = 'question'
def __unicode__(self):
return self.question
@ -128,7 +130,14 @@ class BestPracticeFAQ(ItfModel):
'answer': self.answer,
}
def info_dict(self):
return {
'id': self.id,
'question': self.question,
'answer': self.answer
}
class BestPracticeCategory(models.Model):
name = models.CharField(max_length=256)
description = models.TextField(blank=True)