changeset 1 | a370c5796d08 |
child 2 | 2c1e89e4a5a2 |
0:621d1b4200d2 | 1:a370c5796d08 |
---|---|
1 from django import forms |
|
2 from captcha.fields import CaptchaField |
|
3 from workshop_registration.upload.models import Participant |
|
4 |
|
5 class ParticipantForm(forms.ModelForm): |
|
6 captcha = CaptchaField() |
|
7 class Meta: |
|
8 model = Participant |
|
9 #fields = ['name', 'email', 'phonenumber', |
|
10 # 'category', 'affiliation', 'discipline', |
|
11 # 'workshop', 'tools'] |
|
12 #widgets = {'tools': forms.Textarea(attrs={'cols': 80, 'rows': 40}) |
|
13 #} |
|
14 |