upload/forms.py
author Shantanu <shantanu@fossee.in>
Mon, 25 Jan 2010 16:10:56 +0530
changeset 19 40a3fa500991
parent 2 2c1e89e4a5a2
permissions -rw-r--r--
turned debug=flase.

from django import forms
from captcha.fields import CaptchaField
from ws_reg.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})
      #}