upload/models.py
author Shantanu <shantanu@fossee.in>
Mon, 25 Jan 2010 16:08:52 +0530
changeset 18 ec62a2a6828b
parent 1 a370c5796d08
permissions -rw-r--r--
Added welkin to poc.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     1
from django.db import models
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     2
import workshops 
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     3
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     4
# Create your models here.
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     5
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     6
class Participant(models.Model):	
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     7
    CATEGORY_CHOICES = (
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     8
    ('Student','Student'),
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
     9
    ('College Faculty/Teacher','College Faculty/Teacher'),
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    10
    ('Others','Others'),
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    11
    )
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    12
    eventList = workshops.workshop_name()
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    13
    #workshops.workshop_name(eventList)
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    14
    name = models.CharField(max_length = 50)
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    15
    email = models.EmailField()		
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    16
    phonenumber = models.CharField(max_length=15, verbose_name='Phone Number')
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    17
    discipline = models.CharField(max_length=100, help_text='(ex: Mechanical/Chemical Engg)')
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    18
    category = models.CharField(max_length = 80, choices=CATEGORY_CHOICES)	
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    19
    affiliation = models.CharField(max_length = 256, verbose_name='Affiliated to:(Name of College/Company)')    
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    20
    workshop = models.CharField(max_length = 256,choices=eventList)
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    21
    tools = models.TextField(max_length = 200, blank=True, verbose_name='Tools you are using',help_text='(C, C++, Matlab etc.)')
a370c5796d08 Initialized the registration application.
Shantanu <shantanu@fossee.in>
parents:
diff changeset
    22
    #accommodation = models.BooleanField(verbose_name='Do you require accommodation?')