Skip to content
Snippets Groups Projects

Feedback shortPolling / statistics / +minor fixes

Merged robinwilliam.hundt requested to merge short-polling-feedback into master
22 files
+ 298
37
Compare changes
  • Side-by-side
  • Inline
Files
22
@@ -141,7 +141,10 @@ class FeedbackSerializer(DynamicFieldsModelSerializer):
has_full_score = score == submission.type.full_score
has_feedback_lines = ('feedback_lines' in data and
len(data['feedback_lines']) > 0)
len(data['feedback_lines']) > 0 or
self.instance is not None and
self.instance.feedback_lines.count() > 0)
if not has_full_score and not has_feedback_lines:
raise serializers.ValidationError(
'Sorry, you have to explain why this does not get full score')
Loading