Skip to content

Model.objects.all() does not convert types in primary keys #147

Open
@jacebrowning

Description

@jacebrowning

See this test reproducing the failure:

def test_values_are_filled_from_disk(expect):
InventoryItem.objects.get_or_create(42, "Things", 0.99)
items = list(InventoryItem.objects.all())
expect(items[0]) == InventoryItem(42, "Things", 0.99)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions