author | Shantanu <shantanu@fossee.in> |
Wed, 20 Jan 2010 14:35:55 +0530 | |
changeset 2 | 2c1e89e4a5a2 |
parent 1 | a370c5796d08 |
permissions | -rw-r--r-- |
1
a370c5796d08
Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
1 |
from django import forms |
a370c5796d08
Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
2 |
from captcha.fields import CaptchaField |
2
2c1e89e4a5a2
Corrected name of project to ws_reg.
Shantanu <shantanu@fossee.in>
parents:
1
diff
changeset
|
3 |
from ws_reg.upload.models import Participant |
1
a370c5796d08
Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
4 |
|
a370c5796d08
Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
5 |
class ParticipantForm(forms.ModelForm): |
a370c5796d08
Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
6 |
captcha = CaptchaField() |
a370c5796d08
Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
7 |
class Meta: |
a370c5796d08
Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
8 |
model = Participant |
a370c5796d08
Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
9 |
#fields = ['name', 'email', 'phonenumber', |
a370c5796d08
Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
10 |
# 'category', 'affiliation', 'discipline', |
a370c5796d08
Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
11 |
# 'workshop', 'tools'] |
a370c5796d08
Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
12 |
#widgets = {'tools': forms.Textarea(attrs={'cols': 80, 'rows': 40}) |
a370c5796d08
Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
13 |
#} |
a370c5796d08
Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
14 |