.
This commit is contained in:
+1
-1
@@ -84,6 +84,7 @@ class RapidForm(ModelForm):
|
|||||||
js = ["jsi18n.js", "tesseract.min.js"]
|
js = ["jsi18n.js", "tesseract.min.js"]
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
ModelForm.__init__(self, *args, **kwargs)
|
||||||
super(RapidForm, self).__init__(*args, **kwargs)
|
super(RapidForm, self).__init__(*args, **kwargs)
|
||||||
# self.fields['question'].widget.attrs = {'class': 'question-form', 'rows': 10, 'cols': 100}
|
# self.fields['question'].widget.attrs = {'class': 'question-form', 'rows': 10, 'cols': 100}
|
||||||
# self.fields['feedback'].widget.attrs = {'class': 'feedback-form', 'rows': 10, 'cols': 100}
|
# self.fields['feedback'].widget.attrs = {'class': 'feedback-form', 'rows': 10, 'cols': 100}
|
||||||
@@ -117,7 +118,6 @@ class RapidForm(ModelForm):
|
|||||||
choices=Rapid.LATERALITY_CHOICES, required=False, widget=RadioSelect()
|
choices=Rapid.LATERALITY_CHOICES, required=False, widget=RadioSelect()
|
||||||
)
|
)
|
||||||
|
|
||||||
ModelForm.__init__(self, *args, **kwargs)
|
|
||||||
|
|
||||||
def save(self, commit=True):
|
def save(self, commit=True):
|
||||||
# Get the unsaved Pizza instance
|
# Get the unsaved Pizza instance
|
||||||
|
|||||||
Reference in New Issue
Block a user