changeset 94 | 5de0009c0d71 |
parent 64 | df751cd8a1e4 |
--- a/feedback/forms.py Sat Apr 17 11:40:17 2010 +0530 +++ b/feedback/forms.py Sat Apr 17 13:15:05 2010 +0530 @@ -8,5 +8,8 @@ class Meta: model = Feedback - exclude = ['user_ip', 'event', 'day'] + exclude = [ 'event', 'day'] + def clean_comments(self): + comments = self.cleaned_data['comments'] + return comments.strip()