Skip to content

Commit

Permalink
function name correction
Browse files Browse the repository at this point in the history
  • Loading branch information
UlysseFG committed May 12, 2021
1 parent d2b9be3 commit bfbeef0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/fms_core/management/commands/_delete_individual.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# To delete parents, a first curation need to be run to delete the child individual (or an update), then parents will be unreferenced.

# function that checks the references to an individual and list them.
def list_references(individual):
def list_references_to(individual):
links = []
mother_of = list(individual.mother_of.all())
if mother_of:
Expand Down Expand Up @@ -56,7 +56,7 @@ def delete_individual(params, objects_to_delete, log):
for name in name_array:
try:
individual = individual_model.objects.get(name=name)
links = list_references(individual)
links = list_references_to(individual)
if links:
log.error(f"Individual [{name}] is still referenced. {links}")
error_found = True
Expand Down

0 comments on commit bfbeef0

Please sign in to comment.