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
23d6a9e2
Commit
23d6a9e2
authored
7 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
add string representation to ProteinDomainComplex class
parent
8cc0ad4a
No related branches found
No related tags found
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 @
23d6a9e2
...
...
@@ -126,6 +126,9 @@ class ProteinDomainComplex(models.Model):
class
Meta
:
verbose_name_plural
=
"
complexes
"
def
__str__
(
self
):
return
'
{}-{}
'
.
format
(
self
.
protein_id
,
self
.
domain_id
)
class
ProteinDomainBoundComplex
(
ProteinDomainComplex
):
ppp_copy_nb_per_p
=
models
.
IntegerField
(
'
Number of copies of the protein in the pocket
'
)
pockets_nb
=
models
.
IntegerField
(
'
Total number of pockets in the complex
'
)
...
...
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