Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
fce2cbad
Commit
fce2cbad
authored
7 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
set str representation for MDDRCompoundImport model
Former-commit-id: c0e7a23d6eecbd553815db5d4d25a2ad4046aae4
parent
417eb333
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ippisite/ippidb/models.py
+3
-0
3 additions, 0 deletions
ippisite/ippidb/models.py
with
3 additions
and
0 deletions
ippisite/ippidb/models.py
+
3
−
0
View file @
fce2cbad
...
@@ -288,6 +288,9 @@ class MDDRCompoundImport(models.Model):
...
@@ -288,6 +288,9 @@ class MDDRCompoundImport(models.Model):
unique_together
=
((
'
mddr_name
'
,
'
dvpmt_phase
'
,
'
canonical_smile
'
),)
unique_together
=
((
'
mddr_name
'
,
'
dvpmt_phase
'
,
'
canonical_smile
'
),)
verbose_name_plural
=
"
MDDR compound imports
"
verbose_name_plural
=
"
MDDR compound imports
"
def
__str__
(
self
):
return
"
{}, {}
"
.
format
(
self
.
mddr_name
,
self
.
dvpmt_phase
)
class
MDDRSimilarity
(
models
.
Model
):
class
MDDRSimilarity
(
models
.
Model
):
canonical_smile_ippidb
=
models
.
CharField
(
'
Canonical Smile for IPPIDB compound
'
,
max_length
=
500
,
unique
=
True
,
blank
=
True
,
null
=
True
)
canonical_smile_ippidb
=
models
.
CharField
(
'
Canonical Smile for IPPIDB compound
'
,
max_length
=
500
,
unique
=
True
,
blank
=
True
,
null
=
True
)
canonical_smile_mddr
=
models
.
CharField
(
'
Canonical Smile for MDDR Compound
'
,
max_length
=
500
,
unique
=
True
,
blank
=
True
,
null
=
True
)
canonical_smile_mddr
=
models
.
CharField
(
'
Canonical Smile for MDDR Compound
'
,
max_length
=
500
,
unique
=
True
,
blank
=
True
,
null
=
True
)
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment