author | nishanth |
Thu, 08 Apr 2010 22:28:15 +0530 | |
changeset 2 | c11afa8623f7 |
parent 1 | 18dc0362f550 |
child 5 | 37e4027fba48 |
permissions | -rw-r--r-- |
0 | 1 |
from django.db import models |
2 |
from django.contrib.auth.models import User |
|
3 |
||
4 |
from workshop.reg.models import Event |
|
5 |
||
1
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
6 |
TOPICS_CHOICES = (('1', 'Very relevant'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
7 |
('2', 'Relevant'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
8 |
('3', 'Somewhat relevant'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
9 |
('4', 'Not relevant')) |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
10 |
|
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
11 |
DEPTH_CHOICES = (('1', 'Too detailed'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
12 |
('2', 'Detailed'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
13 |
('3', 'Not enough detail'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
14 |
('4', 'Poor detail')) |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
15 |
|
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
16 |
METHODOLOGY_CHOICES = (('1', 'Extremely effective'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
17 |
('2', 'Effective'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
18 |
('3', 'Not very effective'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
19 |
('4', 'Ineffective')) |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
20 |
|
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
21 |
PACE_CHOICES = (('1', 'Too fast'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
22 |
('2', 'Fast'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
23 |
('3', 'Just right'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
24 |
('4', 'Slow'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
25 |
('5', 'Too slow')) |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
26 |
|
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
27 |
APPLICABILITY_CHOICES = (('1', 'I can use most of it immediately'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
28 |
('2', 'I can use it somewhat immediately'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
29 |
('3', 'I cannot use it immediately'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
30 |
('4', 'I might never use it')) |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
31 |
|
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
32 |
PROBLEMS_CHOICES = (('1', 'Very intersting'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
33 |
('2', 'Interesting'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
34 |
('3', 'Somewhat interesting'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
35 |
('4', 'Not interesting')) |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
36 |
|
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
37 |
EXERCISES_CHOICES = (('1', 'Very instructive'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
38 |
('2', 'Instructive'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
39 |
('3', 'Somewhat instructive'), |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
40 |
('4', 'Not instructive')) |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
41 |
|
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
42 |
class Feedback(models.Model): |
0 | 43 |
""" A table to hold the feedbacks. |
44 |
""" |
|
45 |
||
2 | 46 |
user_ip = models.CharField(max_length=15) |
0 | 47 |
event = models.ForeignKey(Event) |
48 |
||
49 |
range_of_topics = models.CharField(max_length=1, choices=TOPICS_CHOICES, |
|
50 |
verbose_name="Range of topics covered", blank=True) |
|
51 |
depth_of_coverage = models.CharField(max_length=1, choices=DEPTH_CHOICES, blank=True) |
|
52 |
effectiveness_of_methodology = models.CharField(max_length=1, choices=METHODOLOGY_CHOICES, blank=True) |
|
53 |
pace_of_coverage = models.CharField(max_length=1, choices=PACE_CHOICES, blank=True) |
|
54 |
applicability = models.CharField(max_length=1, choices=APPLICABILITY_CHOICES, blank=True) |
|
1
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
55 |
choice_of_problems = models.CharField(max_length=1, choices=PROBLEMS_CHOICES, blank=True) |
18dc0362f550
app ready on django admin interface. but must take care of anonymous user case .
nishanth
parents:
0
diff
changeset
|
56 |
chocice_of_exercises = models.CharField(max_length=1, choices=EXERCISES_CHOICES, blank=True) |
0 | 57 |
comments = models.TextField(verbose_name="General comments", blank=True) |
58 |