From 5e8d0a89783fd2e11ec5a9f71e15ec523c3218fc Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Mon, 18 Mar 2013 13:24:43 +0100 Subject: [PATCH] only show first error of a certain type --- knowledge/survey/browser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/knowledge/survey/browser.py b/knowledge/survey/browser.py index 7177c15..829b340 100644 --- a/knowledge/survey/browser.py +++ b/knowledge/survey/browser.py @@ -87,6 +87,7 @@ class SurveyView(ConceptView): minAnswers = len(qugroup.questions) if count < minAnswers: errors.append('Please answer the minimum number of questions.') + break return errors def getInfoText(self, qugroup):