upload/forms.py
author Shantanu <shantanu@fossee.in>
Wed, 20 Jan 2010 14:35:55 +0530
changeset 2 2c1e89e4a5a2
parent 1 a370c5796d08
permissions -rw-r--r--
Corrected name of project to ws_reg.

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