Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow zero values for integer feedback scales. #2542

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

teymour-aldridge
Copy link
Contributor

Fixes #2541

if not self.cleaned_data.get('min_value') or not self.cleaned_data.get('max_value'):
raise forms.ValidationError(_("Integer scales must have a minimum and maximum"))
if self.cleaned_data.get('min_value') is None:
raise forms.ValidationError(_("Error: min_value must be specified for an integer scale."))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to split the messages for the field, you could use Form.add_error() so that the error shows for the specific field (and could simplify the message so that specifying the field isn't needed, like "A value is required when using an integer scale")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adjudicator Feedback Integer Scale is buggy
2 participants