upload/forms.py
changeset 1 a370c5796d08
child 2 2c1e89e4a5a2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/upload/forms.py	Wed Jan 20 14:19:50 2010 +0530
@@ -0,0 +1,14 @@
+from django import forms
+from captcha.fields import CaptchaField
+from workshop_registration.upload.models import Participant
+
+class ParticipantForm(forms.ModelForm):
+  captcha = CaptchaField()
+  class Meta:
+      model = Participant
+      #fields = ['name', 'email', 'phonenumber',
+      #         'category', 'affiliation', 'discipline', 
+      #         'workshop', 'tools']
+      #widgets = {'tools': forms.Textarea(attrs={'cols': 80, 'rows': 40})
+      #}
+