summaryrefslogtreecommitdiff
path: root/website/forms.py
diff options
context:
space:
mode:
authorKomal Sheth2016-09-23 18:10:39 +0530
committerGitHub2016-09-23 18:10:39 +0530
commit63f2ff9923f52b456a0955d59b2c7329b092d056 (patch)
treea0f6c689b277bd027d3655515fbf4e397c4ffd15 /website/forms.py
parent2360a728612dbbf4bb95e723026edad73522e140 (diff)
parent7221db5b6a19a5a7ce83b0aa1e38178dfb216dd6 (diff)
downloadSciPy2016-63f2ff9923f52b456a0955d59b2c7329b092d056.tar.gz
SciPy2016-63f2ff9923f52b456a0955d59b2c7329b092d056.tar.bz2
SciPy2016-63f2ff9923f52b456a0955d59b2c7329b092d056.zip
Merge pull request #7 from FOSSEE/Alert_on_CFP
Alert on cfp
Diffstat (limited to 'website/forms.py')
-rwxr-xr-xwebsite/forms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/website/forms.py b/website/forms.py
index e052ddf..b6bbc20 100755
--- a/website/forms.py
+++ b/website/forms.py
@@ -11,6 +11,7 @@ from captcha.fields import ReCaptchaField # Only import different from yesterda
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit
import floppyforms as forms
+from captcha.fields import ReCaptchaField
MY_CHOICES = (
@@ -40,12 +41,11 @@ class ContactForm(forms.Form):
required = True,
error_messages = {'required':'Email field required.'},
)
- # subject = forms.CharField(required=True)
message = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control', 'placeholder': 'Title'}),
required = True,
error_messages = {'required':'Message field required.'},
)
- # rate = forms.ChoiceField(choices=rating)
+ captcha = ReCaptchaField()
class ProposalForm(forms.ModelForm):