Skip to content

Conversation

@jnovinger
Copy link
Member

Fixes: #19851

  • Changes CachedScopeMixin.clean() to raise non-field specific ValidationError
  • Adds field-specific ValidationError to ScopedForm.clean() and ScopedImportForm.clean()

I contemplated creating a re-usable ScopeRequiredError exception that sub-classes ValidataionError and handles the messaging, to avoid code duplication. Happy to change that if the reviewer disagrees with the decision not to.

@jnovinger jnovinger requested review from a team and arthanson and removed request for a team September 5, 2025 14:50
@arthanson arthanson merged commit 026737b into main Sep 5, 2025
10 checks passed
@jeremystretch jeremystretch deleted the 19851-adjust-scope-scope_id-validation branch September 8, 2025 12:07
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2025
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.

'WirelessLANImportForm' has no field named 'scope'.

3 participants