feedback/forms.py
author nishanth
Wed, 21 Apr 2010 21:53:33 +0530
changeset 39 0fa055b8ea98
parent 5 9a671f3eb24c
permissions -rw-r--r--
implemented correct_quiz function and added it at the time of closing quiz and modified question bank

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()