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