-
Please, provide support for this feature. Currently ModelMeta metaclass ignores source_field for ForeignKey fields (just appends '_id' to field name). I've managed myself to fix this with one-liner di…
-
**Describe the bug**
The primary key UUID (maybe not only UUID) is not escaped when fetching external entities for the model using `.fetch_related`.
**To Reproduce**
```python3
import asyncio
i…
-
**Describe the bug**
According to the documentation (https://tortoise-orm.readthedocs.io/en/latest/models.html#primary-keys) you can make CharField to a primary key field, but it is not working.
~~I…
-
**Describe the bug**
When creating a table using `Tortoise.generate_schemas()`, `IF NOT EXISTS` was not added to the table created by `through` of `fields.ManyToManyField`.
**To Reproduce**
j…
-
**The Problem / Issue**
I want to auto generate rst documentation for the models. In documentation it makes sense to describe _plain_ attributes, like IntField or CharField in a different block then …
-
I want to add a `_d` attribute and a few `classmethod`s and some regular methods to models by creating a subclass of `tortoise.models.Model` that users of my framework can use. However, subclassing `M…
-
I think the save method of the object adds an update_fields field to update some fields.
Because I update the user table frequently when I log in WeChat, it might be better to update some fields
Do …
-
**Describe the bug**
Foreign key constraints are not working on MySQL/MariaDB
**To Reproduce**
models/countries.py:
```python
class Countries(Model):
id = IntField(pk=True)
code = C…
-
**Describe the bug**
I'm trying to connect to a postgresql database that has `ssl` enabled on aws. I don't see anywhere where I can configure this.
It looks like asyncpg supports it. https://mag…
-
参考了 [明大的结构](https://github.com/dongweiming/lyanna/blob/master/models/base.py)
添加了元类实现,但结果并未生效到数据库中。