-
I use `[UUID('0g2a9a8a-1dd7-2bd3-s9a1-a2f4c53bcfa7'),UUID('0g2a9a8a-1dd7-2bd3-s9a1-a2f4c53bcfa7')]`
The output of Array.get_sql:`ARRAY[97fd9a8a-0cd7-4bdb-b9aa-d7f3cf3bcfa4, 97fd9a8a-0cd7-4bdb-b9aa-…
-
from tortoise.models import Model
from tortoise.fields import *
class Tournament(Model):
id = IntField(pk=True)
name = TextField()
if __name__ == "__main__":
from tortoise import…
-
**Describe the bug**
When using the FastAPI, register_tortoise method using the config arg to disable SSL using https://tortoise-orm.readthedocs.io/en/latest/databases.html#passing-in-custom-ssl-cert…
-
**Is your feature request related to a problem? Please describe.**
When I print a model,I can only got model's name.
The __str__ function should have the same logic as the __repr__ function.
In the…
-
**Describe the bug**
Can't use the specified modifiers. Tortoise-ORM v0.17.3
**To Reproduce**
The following example demonstrates the problem.
```
from tortoise import Tortoise, fields, run_asyn…
-
I am using the json `config_file` approach for Tortoise ORM setup.
This is a part of the working file:
```
'apps': {
'my_app': {
'models': ['my_models.users', 'my_models.t…
-
I want to create blockchain backend app, based on piccolo. So I need custom `User` model (generally, without password field). As suggested in [docs](https://piccolo-orm.readthedocs.io/en/latest/piccol…
-
I'm trying to create a test with pytest for my FastAPI + Tortoise ORM app.
To start, I am using the example provided in the documentation.
main.py:
```python
from typing import List
from pyda…
-
I tried so many times but can't get it working.. I was expecting tortoise to be same like django-orm but it is not acting like that.
**My Models**
```py
class User(models.Model):
id = Snow…
-
Hi,
The aerich automatically create `id` field as an IntField when I didn't define the `id` field.
But I defined `id` as a BigIntField specifically but the aerich doesn't upgrade field to BigIntF…