django-polymorphic
django-polymorphic copied to clipboard
Bulk create support
Hi guys,
There's a ticket that already solved a problem for normal inheritance classes in django (https://code.djangoproject.com/ticket/24997), but in django_polymorphic it doesn't work.
Is there anyone facing the same problem?
Thanks in advance!
Any idea?
I'm not sure why it fails, but this likely needs some support to fix the polymorphic_ctype
field that we assign during .save()
.
Thanks @vdboor I will check this out!
Did anyone make any progress on this? It would be great to be able to bulk_create.
I started working on this. I will make a pull request soon.
What's the current status of this functionality? I see a PR was merged, but the documentation still states
https://django-polymorphic.readthedocs.io/en/stable/api/polymorphic.managers.html
Multi-table models are not supported.
Experimenting on my own, it seems that it can create the base model part of an object, but not the inherited part.
Never mind, that PR seems consistent with Django's documentation, that multi-table inheritance doesn't work with this.