23 ('Corporate: Research', 'Corporate: Research'), |
23 ('Corporate: Research', 'Corporate: Research'), |
24 ('Corporate: Other', 'Corporate: Other'), |
24 ('Corporate: Other', 'Corporate: Other'), |
25 ('Other', 'Other') |
25 ('Other', 'Other') |
26 ) |
26 ) |
27 |
27 |
|
28 SEX_CHOICES = ( |
|
29 ('Male', 'Male'), |
|
30 ('Female', 'Female'), |
|
31 ) |
28 |
32 |
29 class Wifi(base_models.ScopedBase): |
33 class Wifi(base_models.ScopedBase): |
30 """Defines wifi options at SciPy.in |
34 """Defines wifi options at SciPy.in |
31 """ |
35 """ |
32 |
36 |
33 user = models.ForeignKey(User) |
37 user = models.ForeignKey(User) |
34 |
38 |
35 wifi = models.CharField(max_length=50, choices=WIFI_CHOICES, |
39 wifi = models.CharField(max_length=50, choices=WIFI_CHOICES, |
36 help_text=WIFI_HELP, verbose_name="Laptop") |
40 help_text=WIFI_HELP, verbose_name="Laptop") |
|
41 |
|
42 |
|
43 class Accommodation(base_models.ScopedBase): |
|
44 """Defines accommodation information for SciPy.in |
|
45 """ |
|
46 |
|
47 user = models.ForeignKey(User) |
|
48 |
|
49 sex = models.CharField(max_length=50, choices=SEX_CHOICES, |
|
50 verbose_name="Gender", |
|
51 blank=True, null=True) |
|
52 |
|
53 accommodation_required = models.BooleanField( |
|
54 default=False, blank=True, |
|
55 verbose_name="Accommodation required", |
|
56 help_text="Check if you need accommodation.") |
|
57 |
|
58 accommodation_days = models.IntegerField( |
|
59 default=0, blank=True, |
|
60 verbose_name="Number of days", |
|
61 help_text="Number of days the accommodation is required for?") |
37 |
62 |
38 |
63 |
39 class Registration(base_models.ScopedBase): |
64 class Registration(base_models.ScopedBase): |
40 """Defines registration at SciPy.in""" |
65 """Defines registration at SciPy.in""" |
41 |
66 |
78 return 'Registration for user: <%s %s> %s' % ( |
103 return 'Registration for user: <%s %s> %s' % ( |
79 self.registrant.first_name, |
104 self.registrant.first_name, |
80 self.registrant.last_name, self.registrant.email) |
105 self.registrant.last_name, self.registrant.email) |
81 |
106 |
82 |
107 |
83 class Payment(base_models.ScopedBase): |
108 |
84 """ Defines Payment Details of Users """ |
|
85 pass |
|