upload/forms.py
author Shantanu <shantanu@fossee.in>
Mon, 25 Jan 2010 01:51:38 +0530
changeset 14 b4f4d4e8c03e
parent 2 2c1e89e4a5a2
permissions -rw-r--r--
Corrected a view in urls.py.

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