Closed atlasloewenherz closed 3 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Feel free to reopen it if it's still relevant to you. Thank you
class diagram
https://gist.githubusercontent.com/atlasloewenherz/c3915d826c0f3fc67070be60cc0dc240/raw/5b1773163a78b3130169854ebb197c8d08b7e519/diamond.png
Extending the User model and Joined Table Inheritance
Hi everyone,
i have the following models:
both the user and the supplier they are inheriting from Party (as in contract party) a contract is a composition of two or more Parties traditionally Supplier and a User.
even though the user and supplier both inherit from the Party class they still have different attributes and behavior.
instead if duplicating the User model my own application User <- Party and the F.A.B User, I'm trying to extend the F.A.B User to "Be" both a Party user and remain the F.A.B User.
here is how I do proceed:
Helper class
My Application base model using F.A.B Base model
Address model
every party have one or many addresses
Contract model
Contract has two or Many Parties
The Party model
I extended the User as the following
Error message
Environment
Flask-Appbuilder version: Flask-AppBuilder 3.1.1
pip freeze output:
the is the full stack trace
any help or guidance will be appreciated!!