author | hg@fossee.in |
Sat, 05 Sep 2009 04:41:28 -0400 | |
changeset 24 | 7bf724544c9b |
parent 18 | 07408d1ced76 |
permissions | -rw-r--r-- |
0
5fb12cd6d64d
Initial commit added django files.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
1 |
from django.db import models |
5fb12cd6d64d
Initial commit added django files.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
2 |
|
5fb12cd6d64d
Initial commit added django files.
Shantanu <shantanu@fossee.in>
parents:
diff
changeset
|
3 |
# Create your models here. |
2 | 4 |
|
5 |
class Participant(models.Model): |
|
13
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
6 |
LANGUAGE_CHOICES = ( |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
7 |
('Assamese', 'Assamese/Axomiya'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
8 |
('Bengali', 'Bengali'), |
24 | 9 |
('Bhojpuri', 'Bhojpuri'), |
13
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
10 |
('Bodo', 'Bodo'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
11 |
('Dogri', 'Dogri'), |
18
07408d1ced76
Added CSS and I accept terms and condition.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
17
diff
changeset
|
12 |
('English', 'English'), |
13
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
13 |
('Gujarati', 'Gujarati'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
14 |
('Hindi', 'Hindi'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
15 |
('Kannada', 'Kannada'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
16 |
('Kashmiri', 'Kashmiri'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
17 |
('Konkani', 'Konkani'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
18 |
('Maithili', 'Maithili'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
19 |
('Malayalam', 'Malayalam'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
20 |
('Manipuri', 'Manipuri'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
21 |
('Marathi', 'Marathi'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
22 |
('Nepali', 'Nepali'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
23 |
('Oriya', 'Oriya'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
24 |
('Punjabi', 'Punjabi'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
25 |
('Sanskrit', 'Sanskrit'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
26 |
('Santali', 'Santali'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
27 |
('Sindhi', 'Sindhi'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
28 |
('Tamil', 'Tamil'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
29 |
('Telugu', 'Telugu'), |
24 | 30 |
('Tulu', 'Tulu'), |
13
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
31 |
('Urdu', 'Urdu'), |
17 | 32 |
('Other', 'Other') |
13
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
33 |
) |
12 | 34 |
|
13
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
35 |
CATEGORY_CHOICES = ( |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
36 |
('Student at IIT','Student at IIT'), |
17 | 37 |
('Staff and family','Staff and family'), |
38 |
('Faculty and family','Faculty and family'), |
|
39 |
('Others','Others'), |
|
40 |
) |
|
12 | 41 |
|
2 | 42 |
name = models.CharField(max_length = 50) |
43 |
email = models.EmailField() |
|
12 | 44 |
filename = models.FileField(upload_to='videos/%Y/%m/%d') |
2 | 45 |
language = models.CharField(max_length = 20, choices=LANGUAGE_CHOICES) |
18
07408d1ced76
Added CSS and I accept terms and condition.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
17
diff
changeset
|
46 |
other_lang = models.CharField(max_length = 256, |
07408d1ced76
Added CSS and I accept terms and condition.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
17
diff
changeset
|
47 |
verbose_name='If Others, specify', |
07408d1ced76
Added CSS and I accept terms and condition.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
17
diff
changeset
|
48 |
blank=True, null=True) |
2 | 49 |
phonenumber = models.CharField(max_length=15) |
50 |
age = models.IntegerField(max_length=3) |
|
17 | 51 |
category = models.CharField(max_length = 80, choices=CATEGORY_CHOICES) |