--- 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.