sdi/forms.py
branchanoop
changeset 41 651b341fd555
parent 25 30baf3c635c5
child 44 ce2b84e6f24a
--- a/sdi/forms.py	Sat Jun 05 17:01:56 2010 +0530
+++ b/sdi/forms.py	Sat Jun 05 17:18:10 2010 +0530
@@ -1,6 +1,7 @@
 from django import forms
 
 from sage_days.sdi.models import Registrant, TOPICS_CHOICES
+from captcha.fields import CaptchaField
 
 class RegisterForm(forms.ModelForm):
     """ The form that is displayed to user.
@@ -9,6 +10,7 @@
     topics_interested = forms.MultipleChoiceField(widget=forms.CheckboxSelectMultiple, choices=TOPICS_CHOICES, required=False)
     class Meta:
         model = Registrant
+    captcha = CaptchaField()
 
     def clean_email(self):
         """ See if the user has already registered using the email.