upload/models.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Wed, 02 Sep 2009 23:25:20 +0530
changeset 12 0a2b4e85a4ab
parent 2 4d2bbb2f3c4e
child 13 b0175fed9d20
permissions -rw-r--r--
Modified views.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents: 0
diff changeset
     4
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents: 0
diff changeset
     5
class Participant(models.Model):
12
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
     6
	LANGUAGE_CHOICES = [
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
     7
('Assamese', 'Assamese/Axomiya'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
     8
('Bengali', 'Bengali'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
     9
('Bodo', 'Bodo'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    10
('Dogri', 'Dogri'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    11
('Gujarati', 'Gujarati'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    12
('Hindi', 'Hindi'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    13
('Kannada', 'Kannada'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    14
('Kashmiri', 'Kashmiri'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    15
('Konkani', 'Konkani'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    16
('Maithili', 'Maithili'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    17
('Malayalam', 'Malayalam'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    18
('Manipuri', 'Manipuri'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    19
('Marathi', 'Marathi'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    20
('Nepali', 'Nepali'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    21
('Oriya', 'Oriya'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    22
('Punjabi', 'Punjabi'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    23
('Sanskrit', 'Sanskrit'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    24
('Santali', 'Santali'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    25
('Sindhi', 'Sindhi'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    26
('Tamil', 'Tamil'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    27
('Telugu', 'Telugu'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    28
('Urdu', 'Urdu'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    29
]
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    30
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    31
CATEGORY_CHOICES = [
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    32
('Student at IIT','Student at IIT'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    33
('Staff and family','Staff and family'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    34
('Faculty and family','Faculty and family'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    35
('Others','Others'),
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    36
]
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    37
2
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents: 0
diff changeset
    38
	name = models.CharField(max_length = 50)
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents: 0
diff changeset
    39
	email = models.EmailField()
12
0a2b4e85a4ab Modified views.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 2
diff changeset
    40
	filename = models.FileField(upload_to='videos/%Y/%m/%d')
2
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents: 0
diff changeset
    41
	language = models.CharField(max_length = 20, choices=LANGUAGE_CHOICES)
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents: 0
diff changeset
    42
	phonenumber = models.CharField(max_length=15)
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents: 0
diff changeset
    43
	age = models.IntegerField(max_length=3)
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents: 0
diff changeset
    44
	category = models.CharField(max_length = 80, choices=CATEGORY_CHOICES)
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents: 0
diff changeset
    45
4d2bbb2f3c4e Added models and views.
Shantanu <shantanu@fossee.in>
parents: 0
diff changeset
    46