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.

from django import forms

from workshop.feedback.models import Feedback

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

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