author | nishanth |
Tue, 29 Jun 2010 16:12:29 +0530 | |
changeset 103 | ee9261c5ba18 |
parent 94 | 5de0009c0d71 |
permissions | -rwxr-xr-x |
5 | 1 |
from django import forms |
2 |
||
64 | 3 |
from ws_app.feedback.models import Feedback |
5 | 4 |
|
5 |
class FeedbackForm(forms.ModelForm): |
|
6 |
""" A form to collect the feedback. |
|
7 |
""" |
|
8 |
||
9 |
class Meta: |
|
10 |
model = Feedback |
|
94
5de0009c0d71
added 500 template and added clean on comments and added comments in view report.
nishanth
parents:
64
diff
changeset
|
11 |
exclude = [ 'event', 'day'] |
5 | 12 |
|
94
5de0009c0d71
added 500 template and added clean on comments and added comments in view report.
nishanth
parents:
64
diff
changeset
|
13 |
def clean_comments(self): |
5de0009c0d71
added 500 template and added clean on comments and added comments in view report.
nishanth
parents:
64
diff
changeset
|
14 |
comments = self.cleaned_data['comments'] |
5de0009c0d71
added 500 template and added clean on comments and added comments in view report.
nishanth
parents:
64
diff
changeset
|
15 |
return comments.strip() |