Data hosted with ♥ by
Pastebin.com
-
Download Raw
-
See Original
def
clone_model_instance
(
old_obj
)
:
old_obj.
pk
=
None
old_obj.
save
(
)
return
old_obj
# this actually the new created obj