Skip to content

Setting model metadata manually after database connection #559

Answered by ghost
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Answering own question

It seems model classes can be defined without issue containing a database object in the meta class that hasn't been connected to yet. So we can connect later. This thread can be closed.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant