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
fda648e6
Commit
fda648e6
authored
8 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
custom admin table for ProteinDomain(Bound|Partner)Complex
parent
b97ea923
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/admin.py
+10
-0
10 additions, 0 deletions
ippisite/ippidb/admin.py
with
10 additions
and
0 deletions
ippisite/ippidb/admin.py
+
10
−
0
View file @
fda648e6
...
...
@@ -18,6 +18,16 @@ class TaxonomyAdmin(admin.ModelAdmin):
class
DomainAdmin
(
admin
.
ModelAdmin
):
list_display
=
(
'
pfam_acc
'
,
'
pfam_id
'
,
'
pfam_description
'
,
'
domain_family
'
)
@admin.register
(
ProteinDomainBoundComplex
)
class
ProteinDomainBoundComplexAdmin
(
admin
.
ModelAdmin
):
list_display
=
(
'
protein_id
'
,
'
domain_id
'
,
'
ppc_copy_nb
'
,
'
ppp_copy_nb_per_p
'
,
'
pockets_nb
'
)
list_display_links
=
(
'
protein_id
'
,
'
domain_id
'
,
'
ppc_copy_nb
'
,
'
ppp_copy_nb_per_p
'
,
'
pockets_nb
'
)
@admin.register
(
ProteinDomainPartnerComplex
)
class
ProteinDomainPartnerComplexAdmin
(
admin
.
ModelAdmin
):
list_display
=
(
'
protein_id
'
,
'
domain_id
'
,
'
ppc_copy_nb
'
)
list_display_links
=
(
'
protein_id
'
,
'
domain_id
'
,
'
ppc_copy_nb
'
)
for
model
in
apps
.
get_app_config
(
'
ippidb
'
).
models
.
values
():
try
:
admin
.
site
.
register
(
model
)
...
...
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