feedback/forms.py
author nishanth
Thu, 22 Apr 2010 05:33:07 +0530
changeset 47 8a837762531b
parent 5 9a671f3eb24c
permissions -rw-r--r--
added all the day1 quiz2 questions

from django import forms

from offline.feedback.models import Feedback

class FeedbackForm(forms.ModelForm):
    """ A form to collect the feedback.
    """

    class Meta:
        model = Feedback
        exclude = [ 'event', 'day', 'user_ip']

    def clean_comments(self):
        comments = self.cleaned_data['comments']
        return comments.strip()