我想知道如何在models
中使用两个modelform
我尝试过:
from django import forms
from .models import Question, Choice
class CreateQuestionForm(forms.ModelForm):
class Meta:
model = question, choice
Fields = [
'question'
'choice_text
]
答案 0 :(得分:0)