long2ice

Results 410 comments of long2ice

Yes, json format has limitation, I will consider to replace it.

```py TORTOISE_ORM = { "connections": {"default": os.getenv("POSTGRES_URI")}, "apps": { "models": { "models": models,# What's it? "default_connection": "default", }, }, } ```

Maybe because ```py campaign_definition: fields.ForeignKeyNullableRelation = \ fields.ForeignKeyField( 'models.CampaignDefinition', related_name='campaigns', null=True, on_delete=fields.SET_NULL ) ``` Keep it in one line since compatibility issue

just delete migrations/{app} dir, maybe we should catch any exceptions to avoid that.

嗯,这里应该是一个bug,db_constraint=False不应该drop外键

对于相同app,将所有的models加入到tortoise配置中就行。 对于不同app,指定--app即可。

![image](https://user-images.githubusercontent.com/13377178/87111938-38fd4d80-c29d-11ea-86f6-b232eaf5015c.png)