Ticket #6651: patch.2.diff
File patch.2.diff, 1.2 KB (added by , 17 years ago) |
---|
-
contrib/comments/views/comments.py
80 80 "Helper function" 81 81 return Comment(None, self.get_user_id(), new_data["content_type_id"], 82 82 new_data["object_id"], new_data.get("headline", "").strip(), 83 new_data["comment"] .strip(), new_data.get("rating1", None),83 new_data["comment"], new_data.get("rating1", None), 84 84 new_data.get("rating2", None), new_data.get("rating3", None), 85 85 new_data.get("rating4", None), new_data.get("rating5", None), 86 86 new_data.get("rating6", None), new_data.get("rating7", None), … … 136 136 def get_comment(self, new_data): 137 137 "Helper function" 138 138 return FreeComment(None, new_data["content_type_id"], 139 new_data["object_id"], new_data["comment"] .strip(),139 new_data["object_id"], new_data["comment"], 140 140 new_data["person_name"].strip(), datetime.datetime.now(), new_data["is_public"], 141 141 new_data["ip_address"], False, settings.SITE_ID) 142 142