django-polymorphic
django-polymorphic copied to clipboard
How to use update_or_create with django-polymorphic ?
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