I'm trying to implement a method that duplicate Django model instances and its related objects. The solution is in this stackoverflow post.
But _collect_sub_objects
method seems to be deprecated in recent versions of Django. Somebody could tell me if its an equivalent in recent versions of Django?