author | Madhusudan.C.S <madhusudancs@gmail.com> |
Wed, 02 Sep 2009 23:34:38 +0530 | |
changeset 13 | b0175fed9d20 |
parent 12 | 0a2b4e85a4ab |
child 17 | 08a47999f316 |
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'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
9 |
('Bodo', 'Bodo'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
10 |
('Dogri', 'Dogri'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
11 |
('Gujarati', 'Gujarati'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
12 |
('Hindi', 'Hindi'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
13 |
('Kannada', 'Kannada'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
14 |
('Kashmiri', 'Kashmiri'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
15 |
('Konkani', 'Konkani'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
16 |
('Maithili', 'Maithili'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
17 |
('Malayalam', 'Malayalam'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
18 |
('Manipuri', 'Manipuri'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
19 |
('Marathi', 'Marathi'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
20 |
('Nepali', 'Nepali'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
21 |
('Oriya', 'Oriya'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
22 |
('Punjabi', 'Punjabi'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
23 |
('Sanskrit', 'Sanskrit'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
24 |
('Santali', 'Santali'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
25 |
('Sindhi', 'Sindhi'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
26 |
('Tamil', 'Tamil'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
27 |
('Telugu', 'Telugu'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
28 |
('Urdu', 'Urdu'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
29 |
) |
12 | 30 |
|
13
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
31 |
CATEGORY_CHOICES = ( |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
32 |
('Student at IIT','Student at IIT'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
33 |
('Staff and family','Staff and family'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
34 |
('Faculty and family','Faculty and family'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
35 |
('Others','Others'), |
b0175fed9d20
Fixed indentation issue in models.py.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
12
diff
changeset
|
36 |
) |
12 | 37 |
|
2 | 38 |
name = models.CharField(max_length = 50) |
39 |
email = models.EmailField() |
|
12 | 40 |
filename = models.FileField(upload_to='videos/%Y/%m/%d') |
2 | 41 |
language = models.CharField(max_length = 20, choices=LANGUAGE_CHOICES) |
42 |
phonenumber = models.CharField(max_length=15) |
|
43 |
age = models.IntegerField(max_length=3) |
|
44 |
category = models.CharField(max_length = 80, choices=CATEGORY_CHOICES) |