Skip to content

Commit

Permalink
fix overwritten pk for non id pks
Browse files Browse the repository at this point in the history
  • Loading branch information
collerek committed Sep 17, 2020
1 parent f3e2277 commit 9620452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_non_integer_pkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ async def test_pk_1():

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

0 comments on commit 9620452

Please sign in to comment.