feedback/forms.py
author nishanth
Tue, 13 Apr 2010 16:32:13 +0530
changeset 37 981c3eb98e0e
parent 10 c52d170969f0
child 64 df751cd8a1e4
permissions -rw-r--r--
days are now calucated from dates given for the event .
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