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

Closes #15490: CustomValidator support for accessing related object attribute via dotted path #15511

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

jeremystretch
Copy link
Member

Fixes: #15490

  • Use operator.attrgetter to reference attributes of related objects by dotted path
  • Rename extras/tests/test_customvalidation.py to avoid confusion with test_custom_validation.py
  • Add a test for validating related object attributes

@jeremystretch jeremystretch added this to the v4.0 milestone Mar 22, 2024
@jeremystretch jeremystretch merged commit 817e009 into feature Mar 25, 2024
6 checks passed
@jeremystretch jeremystretch deleted the 15490-custom-validator-attrs branch March 25, 2024 15:58
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 25, 2024
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.

2 participants