fix: get relations from soft_delete_kwargs by default

pull/102/MERGE
Angelo 2023-07-04 20:42:25 +08:00
parent a40b5b6f27
commit a2f3f5ff2b
1 changed files with 1 additions and 1 deletions

View File

@ -116,8 +116,8 @@ class SoftDeleteModel(models.Model):
for field in mutated_fields
if not field.many_to_many and field.related_model is field.model
]
relations["foreign"] = related_fields
relations["self"] = f"{tree_model_field[0]}_id" if len(tree_model_field) == 1 else None
relations["foreign"] = related_fields
print(f"{relations=}", flush=True)
return relations