Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Lazily load via checking db.Model & flask instance #111

Closed
joegasewicz opened this issue Apr 28, 2021 · 0 comments · Fixed by #125
Closed

Lazily load via checking db.Model & flask instance #111

joegasewicz opened this issue Apr 28, 2021 · 0 comments · Fixed by #125
Assignees
Labels
bug Something isn't working

Comments

@joegasewicz
Copy link
Owner

If and models decorated by file_upload.Model are imported before the flask-sqlalchemy is initiated then it blows up.

Potential solution:
Check is the db.Model exists, if not then do nothing
This is a breaking change.

@joegasewicz joegasewicz added the bug Something isn't working label Apr 28, 2021
@joegasewicz joegasewicz self-assigned this Apr 28, 2021
joegasewicz pushed a commit that referenced this issue Dec 7, 2021
- Lazily load via checking db.Model & flask instance Fixes #111
- Tests for Python 3.10 Fixes #124
joegasewicz pushed a commit that referenced this issue Dec 7, 2021
joegasewicz pushed a commit that referenced this issue Dec 7, 2021
joegasewicz pushed a commit that referenced this issue Dec 7, 2021
…Model_&_flask_instance_#111

- Lazily load via checking db.Model & flask instance Fixes #111
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant