Module ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr If NameLoad body For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict TryFinally body Expr Call AttributeLoad NameLoad attr finalbody Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list AttributeLoad NameLoad attr
N/A django.db transaction move_parents_models N/A N/A from_obj to_obj exclude_copy_fields N/A None N/A N/A 
    Move parents Django model to diffrent model inheriting from
    the same parent.

    By default Django does not allow the remove of the model without parents.
    Clean _meta.parents, we remove object and add back default parents to class

    Args:
        from_obj: From Django model object
        to_obj: To Django modelo object
        exclude_copy_fields: Remove field from object dict

    Example:
        >> instance = DataCenterAsset.objects.get(pk=1)
        >> back_office_asset = BackOfficeAsset()
        >> move_parents_models(instance, back_office_asset)
     N/A from_dict N/A from_obj __dict__ N/A exclude_copy_fields N/A N/A field_name exclude_copy_fields N/A N/A field N/A N/A N/A to_obj _meta get_field field_name N/A N/A N/A from_dict pop N/A field name None N/A N/A N/A from_dict pop N/A field attname None N/A N/A N/A N/A to_obj __dict__ update from_dict N/A N/A to_obj content_type None N/A N/A N/A to_obj save N/A parents N/A N/A from_obj _meta parents N/A N/A N/A from_obj _meta parents N/A N/A N/A N/A N/A N/A from_obj delete N/A N/A N/A N/A from_obj _meta parents parents N/A N/A transaction atomic