-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Expose control over Django bulk_save option #46
Comments
I am sorry for the delay. Please try it. I have chosen the first suggestion. Will release it soon. |
Thanks. See my comment on the commit.
…On 10 Jan 2018 17:07, "jaska" ***@***.***> wrote:
I am sorry for the delay. Please try it. I have chosen the first
suggestion. Will release it soon.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#46 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEp7KeLqLohpxu1UUUkpm00BTgvBfjlCks5tJO4rgaJpZM4ROJs4>
.
|
please take latest pyexcel, pyexcel-io and django-excel. |
I don't see a new package for django-excel? Pypi still seems to be on 0.0.9 which I believe predates the fix. (I do see pyexcel has been bumped to 0.5.7 and pyexcel-io to 0.5.6). Did the push of 0.0.10 to Pypi fail? |
Hey, my apologies. I forgot to publish django-excel v0.0.10 to pypi last night. now it is there. |
Thanks, that seems to work nicely. |
I'm running into an issue with Django's QuerySet.bulk_create() on multi-table inheritance which might be addressed in some cases. The use of this feature is controlled using the bulk_save option on pyexcel_io.database.importers.django.DjangoModelWriter...however, this is not exposed by pyexcel_io.database.importers.django.DjangoBookWriter:
A simple patch to address this would be to change that to:
or (unless there is some reason to limit what is passed?) possibly even:
Higher up, the ability to specify bulk_save is present in pyexcel.internal.core.save_sheet and save_book but is not exposed by pyexcel.internal.meta.BookMeta.save_to_django_models. This would need to be trivially addressed too.
FWIW, I'm presently using pyexcel-io 0.5.4, but I see that master (as above) also currently has this issue.
The text was updated successfully, but these errors were encountered: