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.

from django.db import models

# Create your models here.

class Participant(models.Model):
	LANGUAGE_CHOICES = [
('Assamese', 'Assamese/Axomiya'),
('Bengali', 'Bengali'),
('Bodo', 'Bodo'),
('Dogri', 'Dogri'),
('Gujarati', 'Gujarati'),
('Hindi', 'Hindi'),
('Kannada', 'Kannada'),
('Kashmiri', 'Kashmiri'),
('Konkani', 'Konkani'),
('Maithili', 'Maithili'),
('Malayalam', 'Malayalam'),
('Manipuri', 'Manipuri'),
('Marathi', 'Marathi'),
('Nepali', 'Nepali'),
('Oriya', 'Oriya'),
('Punjabi', 'Punjabi'),
('Sanskrit', 'Sanskrit'),
('Santali', 'Santali'),
('Sindhi', 'Sindhi'),
('Tamil', 'Tamil'),
('Telugu', 'Telugu'),
('Urdu', 'Urdu'),
]

CATEGORY_CHOICES = [
('Student at IIT','Student at IIT'),
('Staff and family','Staff and family'),
('Faculty and family','Faculty and family'),
('Others','Others'),
]

	name = models.CharField(max_length = 50)
	email = models.EmailField()
	filename = models.FileField(upload_to='videos/%Y/%m/%d')
	language = models.CharField(max_length = 20, choices=LANGUAGE_CHOICES)
	phonenumber = models.CharField(max_length=15)
	age = models.IntegerField(max_length=3)
	category = models.CharField(max_length = 80, choices=CATEGORY_CHOICES)