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
Can't use check field name #1559
Comments
CharEnumField expects an instance of type str, so you could modify your enum to:
|
what @lucasbrahm said is true but i think that the problem here is a name collision with the field "check" that collide with the method "check" of the models. |
Yeah, |
In 0.21.0 you should be able to use |
this is my code, when i try run
aerich migrate
Get this error
File "/usr/local/lib/python3.10/site-packages/tortoise/backends/base/schema_generator.py", line 185, in _get_table_sql self._get_models_to_create(models_to_create) File "/usr/local/lib/python3.10/site-packages/tortoise/backends/base/schema_generator.py", line 412, in _get_models_to_create model.check() TypeError: 'property' object is not callable
The text was updated successfully, but these errors were encountered: