django_polymorphic icon indicating copy to clipboard operation
django_polymorphic copied to clipboard

Support Django entity cloning method

Open wojtekzozlak opened this issue 13 years ago • 0 comments

Django supports comfortable way to clone ORM entites by assigning None to a primary key field and calling a 'save()' method. For example:

x = Entity.objects.get(id=1) x.id 1 x.id = None x.save() x.id 3L

But polymorphic model is just regaining its id, and no new entites are created.

wojtekzozlak avatar May 11 '11 20:05 wojtekzozlak