connect db, bump ver, update releases

This commit is contained in:
collerek
2020-12-15 14:17:19 +01:00
parent daf47f891e
commit 98da0de603
2 changed files with 31 additions and 31 deletions

View File

@ -158,7 +158,6 @@ def create_and_append_m2m_fk(
model.Meta.tablename + "." + model.get_column_alias(model.Meta.pkname),
ondelete="CASCADE",
onupdate="CASCADE",
related_name=model_field.name,
),
)
model_field.through.Meta.columns.append(column)

View File

@ -60,6 +60,7 @@ def create_test_database():
@pytest.mark.asyncio
async def test_add_students():
async with db:
for user_id in [1, 2, 3, 4, 5]:
await User.objects.create(name=f"User {user_id}")