0
我有這樣的模式:Django管理自定義視圖
class Product(models.Model):
...
id = models.IntegerField(unique=True)
...
class Question(models.Model):
product = models.ForeignKey(Product, related_name='question', null=True)
answer = models.ForeignKey(Answer, related_name='question', blank=True, null=True)
user = models.ForeignKey(User, null=True)
text = models.TextField(null=True)
...
class Answer(models.Model):
user = models.ForeignKey(User, null=True)
text = models.TextField(null=True)
...
所有這些模型在Django管理登記。 我怎樣才能得到一個自定義報告表,同時編輯一個問題之一(/管理/ QA /問題/ 1 /變更/):
...
editable standart_fields from Question model
...
non-standart report(without editable fields):
all questions: related answers to them
User: Question(related to a product) - User: Answer to it
User: Question(if it exists) - User: answer to it
是否有可能在管理網站?