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
58c69fac
Commit
58c69fac
authored
7 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
add list display for admin of TestActivityDescription
Former-commit-id: 00c06a433097c92cee328894c321325101bc9d43
parent
5aa7e4cd
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
+4
-0
4 additions, 0 deletions
ippisite/ippidb/admin.py
with
4 additions
and
0 deletions
ippisite/ippidb/admin.py
+
4
−
0
View file @
58c69fac
...
@@ -40,6 +40,10 @@ class MDDRCompoundImport(admin.ModelAdmin):
...
@@ -40,6 +40,10 @@ class MDDRCompoundImport(admin.ModelAdmin):
class
Compound
(
admin
.
ModelAdmin
):
class
Compound
(
admin
.
ModelAdmin
):
list_display
=
(
'
iupac_name
'
,
'
common_name
'
,
'
canonical_smile
'
)
list_display
=
(
'
iupac_name
'
,
'
common_name
'
,
'
canonical_smile
'
)
@admin.register
(
TestActivityDescription
)
class
TextActivityDescription
(
admin
.
ModelAdmin
):
list_display
=
(
'
test_name
'
,
'
test_type
'
,
'
test_modulation_type
'
)
for
model
in
apps
.
get_app_config
(
'
ippidb
'
).
models
.
values
():
for
model
in
apps
.
get_app_config
(
'
ippidb
'
).
models
.
values
():
try
:
try
:
admin
.
site
.
register
(
model
)
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