feedback/forms.py
author nishanth
Mon, 26 Apr 2010 17:57:44 +0530
changeset 102 f9466abf5ca2
parent 94 5de0009c0d71
permissions -rwxr-xr-x
removed the help text for interests. ppl are simply copying

from django import forms

from ws_app.feedback.models import Feedback

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

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

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