Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class NewInterviewSetForm(forms.ModelForm):
- class Meta:
- model = InterviewSet
- fields = ['segment', 'problem_hypothesis', 'riskiest_assumption'] # list of fields you want from model
- widgets = {
- 'segment' : forms.Select( attrs={'class': 'form-control'}),
- 'problem_hypothesis': forms.TextInput(attrs={'class': 'form-control', 'type': 'text', 'placeholder': 'What problem are you investigating?'}),
- 'riskiest_assumption': forms.Select(attrs={'class': 'form-control'}),
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement