Publisher application form: prevent 'blind' and 'none' being entered into the form#2589
Open
varadekd wants to merge 6 commits into
Open
Publisher application form: prevent 'blind' and 'none' being entered into the form#2589varadekd wants to merge 6 commits into
varadekd wants to merge 6 commits into
Conversation
richard-jones
requested changes
May 18, 2026
richard-jones
left a comment
Contributor
There was a problem hiding this comment.
One of the validators isn't working for reasons unknown, otherwise I've added a functional test and slightly changed the wording, and this looks good otherwise.
| {"not_value": { | ||
| "value": "None", | ||
| "message": lazy_gettext("'None' is not a valid answer for this question. Leave blank.") | ||
| }} # ~~^-> NotValue:FormValidator~~ |
Contributor
There was a problem hiding this comment.
For reasons that aren't clear to me, this validation isn't working client-side. Possibly it's interacting with the multiple_field widget?
…j into feature/4232_prevent_blind_none
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Publisher application form: prevent 'blind' and 'none' being entered into the form
This PR...
Developer Checklist
Developers should review and confirm each of these items before requesting review
constantsormessagesfilesdates)url_fornot hard-codeddevelopReviewer Checklist
Reviewers should review and confirm each of these items before approval
If there are multiple reviewers, this section should be duplicated for each reviewer
constantsormessagesfilesdates)url_fornot hard-codeddevelopTesting
List user test scripts that need to be run
List any non-unit test scripts that need to be run by reviewers
Deployment
What deployment considerations are there? (delete any sections you don't need)
Configuration changes
What configuration changes are included in this PR, and do we need to set specific values for production
Scripts
What scripts need to be run from the PR (e.g. if this is a report generating feature), and when (once, regularly, etc).
Migrations
What migrations need to be run to deploy this
Monitoring
What additional monitoring is required of the application as a result of this feature
New Infrastructure
What new infrastructure does this PR require (e.g. new services that need to run on the back-end).
Continuous Integration
What CI changes are required for this