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

