author | nishanth |
Mon, 19 Apr 2010 22:36:23 +0530 | |
changeset 5 | 9a671f3eb24c |
parent 4 | e3b8a3ae3857 |
permissions | -rw-r--r-- |
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()