Great!
Thank you very much Mike
(and also thanks for catching the error in the `UserWithBonuses` class
declaration)
On Saturday, October 8, 2016 at 9:02:37 AM UTC-5, Mike Bayer wrote:
>
>
>
> On 10/07/2016 05:49 PM, HP3 wrote:
> > Hello all,
> >
> > Can a @hybrid_property be overriden by a
On 10/07/2016 05:49 PM, HP3 wrote:
Hello all,
Can a @hybrid_property be overriden by a subclass?
absolutely, hybrid_property is a python descriptor
Consider this modified example:
(from
Hello all,
Can a @hybrid_property be overriden by a subclass?
Consider this modified example:
(from
http://docs.sqlalchemy.org/en/rel_0_9/orm/extensions/hybrid.html#correlated-subquery-relationship-hybrid)
A subclass of User, UserWithBonuses, have its computed `balance` by adding
all balances