-
```
class User(models.Model):
name = fields.CharField(max_length=100)
email = fields.CharField(max_length=50)
recipes: fields.ReverseRelation["Recipe"]
class Recipe(models.Model):…
-
**Describe the bug**
When trying to convert a Tortoise model to a Pydantic model with `pydantic_model_creator`, an **KeyError** exception is thrown.
**To Reproduce**
In this example, I try to ass…
-
Guy, there is some roadmap of that features you intend implement on this project.
I would like help to implement them.
_I liked the proposals and objectives that will be achieved at end._
-
**Describe the bug**
Creating a ForeignKeyField with on_delete=SET_DEFAULT results in an error
stating on_delete must be set to CASCADE, RESTRICT or SET_NULL
**To Reproduce**
```
from tortoise …
-
**Is your feature request related to a problem? Please describe.**
If we try to have cyclic referencing foreign keys, the schemas won't generate
**Describe the solution you'd like**
Support cycli…
-
While looking into https://github.com/tortoise/tortoise-orm/issues/527 I came upon the question of where there is any way to do the SQLLite query
```SQL
INSERT OR IGNORE INTO "foo" VALUES (1, 'm')…
-
_Pyenv with python 3.8.3_
`pip install aerich==0.2.4 `
`aerich`
> Traceback (most recent call last):
> File "/home/alex/.pyenv/versions/clever/bin/aerich", line 6, in
> from aerich.…
-
First of all, great project man!, I also live in Uruguay.
As i said in the title, cattrs.structure have problems to serialize attrs objects (frozen=True) when those are used as dict key.
Example…
-
## TODO — Required
* [ ] Timezone support (#103)
* [ ] Ensure `generate_schema` EXACTLY the same as `SHOW CREATE TABLE` in MySQL (#237)
* [ ] Good aggregate/filter support (#309, #257)
* [ ] Forma…
grigi updated
4 years ago
-
```
class User(Model):
id = fields.IntField(pk=True)
username = fields.CharField(max_length=30, unique=True)
status = fields.ForeignKeyField('myapp.UserStatus')
class PydanticMe…