Re: [sqlalchemy] Adding extra constraints to monkey-patched model classes

2020-05-06 Thread Alejandro Avilés
Great, thank you. Managed to make it work! On Wednesday, May 6, 2020 at 2:35:12 PM UTC+2, Mike Bayer wrote: > > > > On Wed, May 6, 2020, at 7:19 AM, Alejandro Avilés wrote: > > I'm working on a project where I need to add additional columns to tables > defined in a

[sqlalchemy] Adding extra constraints to monkey-patched model classes

2020-05-06 Thread Alejandro Avilés
I'm working on a project where I need to add additional columns to tables defined in a different package. This is done via monkeypatching the model classes. I need now to also add additional constraints, but I'm getting no luck overriding `__table_args__`. I'm a bit lost as to how to continue i