fusionbox / django-widgy

A CMS framework for Django built on a heterogenous tree editor.
http://wid.gy
Other
332 stars 52 forks source link

Use bulk_create in clone_tree on django 1.10 #379

Open gavinwahl opened 8 years ago

gavinwahl commented 8 years ago

Django 1.10 allows bulk_create to retrieve the primary keys of the created objects: on some database backends: https://docs.djangoproject.com/en/1.10/releases/1.10/#database-backends. We should use this in clone_tree when possible.