Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk create support #204

Open
tng10 opened this issue Mar 29, 2016 · 6 comments
Open

Bulk create support #204

tng10 opened this issue Mar 29, 2016 · 6 comments

Comments

@tng10
Copy link

tng10 commented Mar 29, 2016

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!

@tng10
Copy link
Author

tng10 commented Apr 12, 2016

Any idea?

@vdboor
Copy link
Collaborator

vdboor commented May 4, 2016

I'm not sure why it fails, but this likely needs some support to fix the polymorphic_ctype field that we assign during .save().

@tng10
Copy link
Author

tng10 commented May 5, 2016

Thanks @vdboor I will check this out!

@MightySCollins
Copy link

Did anyone make any progress on this? It would be great to be able to bulk_create.

@krzysztofgromadzki
Copy link
Contributor

I started working on this. I will make a pull request soon.

@AlanCoding
Copy link

AlanCoding commented Feb 12, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants