equal
deleted
inserted
replaced
|
1 from datetime import datetime |
|
2 |
|
3 from django.contrib.auth.models import User, UserManager |
|
4 from django.db import models |
|
5 from django.forms import ModelForm |
|
6 from django.utils.translation import ugettext_lazy as _ |
|
7 |
|
8 |
|
9 class Participant(models.Model): |
|
10 """Model for holding details of participants |
|
11 """ |
|
12 |
|
13 PARTICIPANT_CATEGORY = ( |
|
14 ('Student','Student'), |
|
15 ('Corporate Staff','Corporate Staff'), |
|
16 ('Teacher','Teacher'), |
|
17 ('Others','Others'), |
|
18 ) |
|
19 |
|
20 username = models.ForeignKey(User, unique=True, related_name='profile') |
|
21 |
|
22 email = models.EmailField(_("Email Address"),unique=True) |
|
23 |
|
24 category = models.CharField(max_length = 80, choices=PARTICIPANT_CATEGORY,) |
|
25 |
|
26 organisation = models.CharField(_("Organisation"),max_length=200,blank = True,null = True) |
|
27 |
|
28 attending_conf = models.BooleanField(verbose_name="Will you attend conference?") |
|
29 |
|
30 attending_tut = models.BooleanField(verbose_name="Will you attend tutorial session?") |
|
31 |
|
32 attending_sprint = models.BooleanField(verbose_name="Will you attend sprint?") |
|
33 |
|
34 paper_submission = models.BooleanField(verbose_name="Do you want to Submit paper?") |