Skip to content
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

Tortoise-ORM config may be generated by function. #12

Closed
YogiLiu opened this issue Jun 22, 2020 · 1 comment
Closed

Tortoise-ORM config may be generated by function. #12

YogiLiu opened this issue Jun 22, 2020 · 1 comment

Comments

@YogiLiu
Copy link

YogiLiu commented Jun 22, 2020

https://github.com/long2ice/aerich/blob/19c9c2c30f675361d846fe54a8706e3fd698406f/aerich/cli.py#L59

This line will raise AttributeError: 'function' object has no attribute 'get' when Tortoise-ORM config generated by function.

@long2ice
Copy link
Member

You can assign the return value of function to a variable as config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants