# HG changeset patch # User Lennard de Rijk # Date 1239554610 0 # Node ID 19ed1c42e83626c428b93da13a91c93e5443afde # Parent 27731db8ab1e59862d4cf0ed6311896a3de6f8e2 Added a warning message to alert the user that reviews are not editable. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed diff -r 27731db8ab1e -r 19ed1c42e836 app/soc/views/models/student_proposal.py --- a/app/soc/views/models/student_proposal.py Sun Apr 12 16:09:00 2009 +0000 +++ b/app/soc/views/models/student_proposal.py Sun Apr 12 16:43:30 2009 +0000 @@ -174,6 +174,7 @@ 'widget': widgets.FullTinyMCE(attrs={'rows': 10, 'cols': 40}), 'label': 'Comment', 'required': False, + 'example_text': 'Caution, you will not be able to edit your comment!', }, ] @@ -210,6 +211,7 @@ 'widget': widgets.FullTinyMCE(attrs={'rows': 10, 'cols': 40}), 'label': 'Comment', 'required': False, + 'example_text': 'Caution, you will not be able to edit your review!', }, {'name': 'public', 'base': forms.BooleanField, @@ -915,10 +917,11 @@ context['public_reviews'] = public_reviews context['private_reviews'] = private_reviews + # create a summary of all the private reviews review_summary = {} for review in private_reviews: - + # make sure there is a reviewer reviewer = review.reviewer if not reviewer: continue