Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

Add choice validation to BaseMoloSurveyForm #117

Merged
merged 9 commits into from
Jul 31, 2018

Conversation

moh-moola
Copy link
Contributor

No description provided.

Copy link
Contributor

@KaitCrawford KaitCrawford left a comment

Choose a reason for hiding this comment

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

Small comment on a variable name.
Is this stuff tested somewhere already?

@@ -252,13 +252,27 @@ def clean(self):
'Options: a True and False'),
)
elif data['field_type'] in VALID_SKIP_LOGIC:
choice_max_length = 0
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this variable name is incorrect. It seems to be the length of all the choices added, not the maximum possible length. Maybe something like choices_length would be more accurate?

Copy link
Contributor

@KaitCrawford KaitCrawford left a comment

Choose a reason for hiding this comment

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

👍

@moh-moola moh-moola merged commit 15aa36f into develop Jul 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants