django-polymorphic icon indicating copy to clipboard operation
django-polymorphic copied to clipboard

How to use update_or_create with django-polymorphic ?

Open oza4h07 opened this issue 4 years ago • 0 comments

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

oza4h07 avatar Jun 23 '21 09:06 oza4h07