feedback/forms.py
author nishanth
Thu, 15 Apr 2010 18:23:21 +0530
changeset 53 0a4b2c49f718
parent 10 c52d170969f0
child 64 df751cd8a1e4
permissions -rw-r--r--
changed feedback model since we now take feedback only from logged in users .

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']