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

Fixes #17685 : Fix job field validation #17847

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

alehaa
Copy link
Contributor

@alehaa alehaa commented Oct 23, 2024

Fixes: #17685

Previously, fields in the Job model were not validated when the job was created. Now full_clean() is called before saving the job to ensure valid data. In addition, test cases have been updated because using a Job as instance when creating a job would not pass validation.

Previously, fields in the Job model were not validated when the job was
created. Now 'full_clean()' is called before saving the job to ensure
valid data.
Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

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

Thanks @alehaa!

@jeremystretch jeremystretch removed the request for review from arthanson October 28, 2024 17:38
@jeremystretch jeremystretch merged commit 69e1394 into netbox-community:develop Oct 28, 2024
3 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 28, 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.

Job.clean() not called
2 participants