-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fixes: #2943, allow overriding validates for inheritance #10574
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
base: main
Are you sure you want to change the base?
Conversation
15b1be7
to
d310bef
Compare
OK...it all works? this is a 2.1 thing then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, this is sqla-tester setting up my work on behalf of zzzeek to try to get revision d310bef of this pull request into gerrit so we can run tests and reviews and stuff
New Gerrit review created for change d310bef: https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/4919 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Federico Caselli (CaselIT) wrote:
left some style suggestions
View this in Gerrit at https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/4919
d310bef
to
eab0c56
Compare
Applied the patch mentioned in sqlalchemy#2943, to allow overriding the validates method of a given Model, Added tests for same in test_validators. If a Child class overrides the parent class validates method only child class validator will be invoked unless child class explicitly invokes parent class validator
eab0c56
to
9c3d510
Compare
Applied the patch mentioned in #2943, to allow overriding the validates method of a given Model, Added tests for same in test_validators.
If a Child class overrides the parent class validates method only child class validator will be invoked unless child class explicitly invokes parent class validator
Description
Checklist
This pull request is:
include a complete example of how the feature would look.
Fixes: #<issue number>
in the commit messageHave a nice day!