Skip to content

How to use update_or_create with django-polymorphic ? #494

@oza4h07

Description

@oza4h07

Hello,

With Django 3.1.7 and Polymorphic 3.0.0, I'm seeing the error bellow when using something like obj, created = Book.objects.update_or_create(title='Foo').

How to use update_or_create with django-polymorphic ?

ValueError: Field 'id' expected a number but got ''.
Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions