1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
|
from django.db import models
from django.contrib.auth.models import User
# Create your models here.
events = (
('SLC', 'Scilab Conference'),
('SPC', 'Scipy Conference'),
('PTC', 'Python Textbook Companion'),
('STC', 'Scilab Textbook Companion'),
('DCM', 'DrupalCamp Mumbai'),
('FET', 'FreeEda Textbook Companion'),
('OFC', 'OpenFOAM Symposium'),
('FIC', 'Fossee Internship'),
('F16', 'Fossee Internship 2016'),
('OWS', 'Osdag Workshop'),
('EWS', 'eSim Workshop'),
('DRP', 'Drupal Workshop'),
)
class Profile(models.Model):
user = models.OneToOneField(User)
# other details
uin = models.CharField(max_length=50) #2 intialletters + 6 hexadigits
attendance = models.NullBooleanField()
class Event(models.Model):
purpose = models.CharField(max_length=25, choices=events)
start_date = models.DateTimeField()
end_date = models.DateTimeField()
# other details
class Certificate(models.Model):
name = models.CharField(max_length=100)
email = models.CharField(max_length=50, null=True, blank=True)
serial_no = models.CharField(max_length=50) #purpose+uin+1stletter
counter = models.IntegerField()
workshop = models.CharField(max_length=100, null=True, blank=True)
paper = models.CharField(max_length=100, null=True, blank=True)
verified = models.IntegerField(default=0)
serial_key = models.CharField(max_length=200, null=True)
short_key = models.CharField(max_length=50, null=True)
class Scilab_participant(models.Model):
''' Autogenerated model file csvimport Mon Dec 1 07:46:00 2014 '''
id = models.IntegerField(primary_key=True, null=False)
ticket_number = models.IntegerField(default=0, null=False, blank=False)
name = models.CharField(max_length=50, null=True, blank=True)
email = models.CharField(max_length=50, null=True, blank=True)
ticket = models.CharField(max_length=50, null=True, blank=True)
date = models.CharField(max_length=50, null=True, blank=True)
order_id = models.IntegerField(default=0, null=True, blank=True)
purpose = models.CharField(max_length=10, default='SLC')
attendance = models.BooleanField(default=False)
class Meta:
managed = True
class Scilab_speaker(models.Model):
''' Autogenerated model file csvimport Wed Dec 3 05:36:56 2014 '''
id = models.IntegerField(default=0, null=False, primary_key=True, blank=False)
name = models.CharField(max_length=300)
email = models.CharField(max_length=300)
ticket = models.CharField(max_length=100)
paper = models.CharField(max_length=300)
purpose = models.CharField(max_length=10, default='SLC')
attendance = models.BooleanField(default=False)
class Scilab_workshop(models.Model):
''' Autogenerated model file csvimport Wed Dec 3 06:31:59 2014 '''
id = models.IntegerField(null=False, primary_key=True, blank=False)
name = models.CharField(max_length=300)
ticket_number = models.IntegerField(null=True)
email = models.CharField(max_length=300)
workshops = models.CharField(max_length=300)
purpose = models.CharField(max_length=10, default='SLC')
attendance = models.BooleanField(default=False)
class FeedBack(models.Model):
''' Feed back form for the event '''
name = models.CharField(max_length=100)
email = models.CharField(max_length=100)
phone = models.CharField(max_length=20)
institution = models.CharField(max_length=100)
role = models.CharField(max_length=100)
address = models.CharField(max_length=100)
city = models.CharField(max_length=50)
pin_number = models.CharField(max_length=10)
state = models.CharField(max_length=50)
purpose = models.CharField(max_length=10, default='SLC')
submitted = models.BooleanField(default=False)
answer = models.ManyToManyField('Answer')
class Question(models.Model):
question = models.CharField(max_length=500)
purpose = models.CharField(max_length=10, default='SLC')
class Answer(models.Model):
question = models.ForeignKey(Question)
answer = models.CharField(max_length=1000)
class Scipy_participant(models.Model):
id = models.IntegerField(primary_key=True, null=False)
name = models.CharField(max_length=50, null=True, blank=True)
email = models.CharField(max_length=50, null=True, blank=True)
purpose = models.CharField(max_length=10, default='SPC')
attendance = models.BooleanField(default=False)
class Scipy_speaker(models.Model):
id = models.IntegerField(default=0, null=False, primary_key=True, blank=False)
name = models.CharField(max_length=300)
email = models.CharField(max_length=300)
paper = models.CharField(max_length=300)
purpose = models.CharField(max_length=10, default='SPC')
attendance = models.BooleanField(default=False)
class Drupal_camp(models.Model):
firstname = models.CharField(max_length=200)
lastname = models.CharField(max_length=200)
email = models.EmailField(null=True, blank=True)
# Day 1 - 1, Day 2 - 2, Both days - 3, else 0
attendance = models.PositiveSmallIntegerField(default=0)
role = models.CharField(max_length=100, null=True, blank=True)
purpose = models.CharField(max_length=10, default='DCM')
is_student = models.IntegerField(default=0)
class Tbc_freeeda(models.Model):
name = models.CharField(max_length=200)
email = models.EmailField()
college = models.CharField(max_length=200)
book = models.CharField(max_length=200)
author = models.CharField(max_length=200)
role = models.CharField(max_length=50)
purpose = models.CharField(max_length=10, default='FET')
class Dwsim_participant(models.Model):
name = models.CharField(max_length=200)
email = models.EmailField()
purpose = models.CharField(max_length=10, default='DWS')
class Scilab_arduino(models.Model):
name = models.CharField(max_length=200)
email = models.EmailField()
purpose = models.CharField(max_length=10, default='SCA')
class Esim_faculty(models.Model):
name = models.CharField(max_length=200)
email = models.EmailField()
purpose = models.CharField(max_length=10, default='ESM')
class Osdag_WS(models.Model):
name = models.CharField(max_length=200)
email = models.EmailField()
purpose = models.CharField(max_length=10, default='OWS')
class Drupal_WS(models.Model):
name = models.CharField(max_length=200)
email = models.EmailField()
purpose = models.CharField(max_length=10, default='DRP')
class eSim_WS(models.Model):
name = models.CharField(max_length=200)
email = models.EmailField()
purpose = models.CharField(max_length=10, default='EWS')
class Scipy_participant_2015(models.Model):
name = models.CharField(max_length=50, null=True, blank=True)
email = models.CharField(max_length=50, null=True, blank=True)
purpose = models.CharField(max_length=10, default='SPC')
class Scipy_speaker_2015(models.Model):
name = models.CharField(max_length=300)
email = models.CharField(max_length=300)
paper = models.CharField(max_length=300)
purpose = models.CharField(max_length=10, default='SPC')
class Scipy_participant_2016(models.Model):
name = models.CharField(max_length=50, null=True, blank=True)
email = models.CharField(max_length=50, null=True, blank=True)
purpose = models.CharField(max_length=10, default='SPC')
class Scipy_speaker_2016(models.Model):
name = models.CharField(max_length=300)
email = models.CharField(max_length=300)
paper = models.CharField(max_length=300)
purpose = models.CharField(max_length=10, default='SPC')
class Scipy_workshop_2016(models.Model):
name = models.CharField(max_length=300)
email = models.CharField(max_length=300)
paper = models.CharField(max_length=300)
purpose = models.CharField(max_length=10, default='SPC')
class OpenFOAM_Symposium_participant_2016(models.Model):
name = models.CharField(max_length=50, null=True, blank=True)
email = models.CharField(max_length=50, null=True, blank=True)
purpose = models.CharField(max_length=10, default='OFC')
class OpenFOAM_Symposium_speaker_2016(models.Model):
name = models.CharField(max_length=300)
email = models.CharField(max_length=300)
paper = models.CharField(max_length=300)
purpose = models.CharField(max_length=10, default='OFC')
class Internship_participant(models.Model):
name = models.CharField(max_length=200)
email = models.EmailField()
student_edu_detail = models.CharField(max_length=1000, null=True, blank=True)
student_institute_detail = models.CharField(max_length=2000, null=True, blank=True)
superviser_name_detail = models.CharField(max_length=2000, null=True, blank=True)
project_title = models.CharField(max_length=1000)
internship_project_duration = models.CharField(max_length=500, null=True, blank=True)
purpose = models.CharField(max_length=10, default='FIC')
# year = models.CharField(max_length = 4)
class Internship16_participant(models.Model):
name = models.CharField(max_length=200)
email = models.EmailField()
student_edu_detail = models.CharField(max_length=1000, null=True, blank=True)
student_institute_detail = models.CharField(max_length=2000, null=True, blank=True)
superviser_name_detail = models.CharField(max_length=2000, null=True, blank=True)
project_title = models.CharField(max_length=1000)
internship_project_duration = models.CharField(max_length=500, null=True, blank=True)
purpose = models.CharField(max_length=10, default='F16')
|