-
Notifications
You must be signed in to change notification settings - Fork 0
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
ORM Model register failed #1
Comments
did you declare |
BTW, you should utilize |
Yes I declare it. I think i have resolved it , ModelBase should inherit Sqlalchemy Model not Object. |
sorry, i had to recheck my own reply, its in the git's readme file - you have to use |
Thanks ,I also try with instance.db.Base ,but it also not working. |
no no, you have to use `db.Base` not the `ModelBase`.
Best wishes -
Asif Mahmud Shimon
…On Thu, Mar 5, 2020 at 4:21 PM wadehehe ***@***.***> wrote:
Thanks ,I also try with instance.db.Base ,but it also not working.
I think _decl_class_registry is sqlalchemy attribute, so we must use it as
ModelBase's base.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=ABLQLUQMUNXT5SR3ALOXQN3RF54LPA5CNFSM4LBB4C5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN4UFSQ#issuecomment-595149514>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLQLUWWRK6ORU5WPF5VL2TRF54LPANCNFSM4LBB4C5A>
.
|
Base._decl_class_registry can not find a key 'tablename'
What reason cause this?
I have already inherit BaseModel
The text was updated successfully, but these errors were encountered: