Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. class NewInterviewSetForm(forms.ModelForm):
  2.  
  3. class Meta:
  4. model = InterviewSet
  5. fields = ['segment', 'problem_hypothesis', 'riskiest_assumption'] # list of fields you want from model
  6. widgets = {
  7. 'segment' : forms.Select( attrs={'class': 'form-control'}),
  8. 'problem_hypothesis': forms.TextInput(attrs={'class': 'form-control', 'type': 'text', 'placeholder': 'What problem are you investigating?'}),
  9. 'riskiest_assumption': forms.Select(attrs={'class': 'form-control'}),
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement