upload/forms.py
author Shantanu <shantanu@fossee.in>
Wed, 20 Jan 2010 14:19:50 +0530
changeset 1 a370c5796d08
child 2 2c1e89e4a5a2
permissions -rw-r--r--
Initialized the registration application.

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})
      #}