Skip to content
Snippets Groups Projects
Commit a08065e9 authored by Fabien  MAREUIL's avatar Fabien MAREUIL
Browse files

bug fix: set_drugbank_link does not exist in old Compound model

parent 76fde513
No related branches found
No related tags found
1 merge request!29Prepare for v1.1.0
Pipeline #46785 passed
......@@ -18,7 +18,7 @@ def set_compound_drugbank_links(apps, schema_editor):
Compound = apps.get_model("ippidb", "Compound")
for compound in Compound.objects.all():
# same bug than autofill commit '9566e42e'
((Compound__latest)(set_drugbank_link)).set_drugbank_link()
((Compound__latest)(compound)).set_drugbank_link()
compound.save()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment