bestpractices faq
This commit is contained in:
parent
1209fbe342
commit
77d2154ca2
|
@ -118,6 +118,8 @@ class BestPracticeFAQ(ItfModel):
|
||||||
question = models.TextField()
|
question = models.TextField()
|
||||||
answer = models.TextField()
|
answer = models.TextField()
|
||||||
|
|
||||||
|
title_field = 'question'
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
return self.question
|
return self.question
|
||||||
|
|
||||||
|
@ -128,6 +130,13 @@ class BestPracticeFAQ(ItfModel):
|
||||||
'answer': self.answer,
|
'answer': self.answer,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def info_dict(self):
|
||||||
|
return {
|
||||||
|
'id': self.id,
|
||||||
|
'question': self.question,
|
||||||
|
'answer': self.answer
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class BestPracticeCategory(models.Model):
|
class BestPracticeCategory(models.Model):
|
||||||
name = models.CharField(max_length=256)
|
name = models.CharField(max_length=256)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user