upload/models.py
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--
Fixed indentation issue in models.py.

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)