feedback/forms.py
author nishanth
Thu, 15 Apr 2010 19:00:23 +0530
changeset 56 3858a9d0f376
parent 10 c52d170969f0
child 64 df751cd8a1e4
permissions -rw-r--r--
removed the field feedback_submitted_by from event model and added the code to create feedlog record when a new feedback is taken.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
37e4027fba48 submit and list feedback done
nishanth
parents:
diff changeset
     1
from django import forms
37e4027fba48 submit and list feedback done
nishanth
parents:
diff changeset
     2
37e4027fba48 submit and list feedback done
nishanth
parents:
diff changeset
     3
from workshop.feedback.models import Feedback
37e4027fba48 submit and list feedback done
nishanth
parents:
diff changeset
     4
37e4027fba48 submit and list feedback done
nishanth
parents:
diff changeset
     5
class FeedbackForm(forms.ModelForm):
37e4027fba48 submit and list feedback done
nishanth
parents:
diff changeset
     6
    """ A form to collect the feedback.
37e4027fba48 submit and list feedback done
nishanth
parents:
diff changeset
     7
    """
37e4027fba48 submit and list feedback done
nishanth
parents:
diff changeset
     8
37e4027fba48 submit and list feedback done
nishanth
parents:
diff changeset
     9
    class Meta:
37e4027fba48 submit and list feedback done
nishanth
parents:
diff changeset
    10
        model = Feedback
10
c52d170969f0 quite a few changes. modified models and feedback views .
nishanth
parents: 5
diff changeset
    11
        exclude = ['user_ip', 'event', 'day']
5
37e4027fba48 submit and list feedback done
nishanth
parents:
diff changeset
    12