introduce save_related method that traverses the related objects and upserts them if they are not saved

This commit is contained in:
collerek
2020-11-14 14:29:54 +01:00
parent 58a3855697
commit cd33f6a96b
3 changed files with 169 additions and 3 deletions

View File

@ -1,8 +1,6 @@
import itertools
from typing import Optional, List
from typing import List
import databases
import pydantic
import pytest
import sqlalchemy