Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iPPIDB
ippidb-web
Commits
a08065e9
Commit
a08065e9
authored
Jan 28, 2021
by
Fabien MAREUIL
Browse files
bug fix: set_drugbank_link does not exist in old Compound model
parent
76fde513
Pipeline
#46785
passed with stages
in 19 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ippisite/ippidb/migrations/0063_fill_drugbank_links.py
View file @
a08065e9
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment