fix overwritten pk for non id pks

This commit is contained in:
collerek
2020-09-17 19:11:21 +02:00
parent f3e227748f
commit 9620452b44

View File

@ -42,6 +42,6 @@ async def test_pk_1():
@pytest.mark.asyncio @pytest.mark.asyncio
async def test_pk_2(): async def test_pk_2():
# async with database: async with database:
model = await Model.objects.create(name="NAME") model = await Model.objects.create(name="NAME")
assert await Model.objects.all() == [model] assert await Model.objects.all() == [model]