Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
metagenedb
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Metagenomics
metagenedb
Commits
7707f5e2
Commit
7707f5e2
authored
5 years ago
by
Kenzo-Hugo Hillion
Browse files
Options
Downloads
Patches
Plain Diff
hide fields that leads to consuming requests
parent
bf228749
No related branches found
Branches containing commit
No related tags found
2 merge requests
!59
Prod
,
!38
Hide fields that leads to consuming requests in Django admin
Pipeline
#23641
passed with stages
Stage:
Stage:
in 3 minutes and 44 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
backend/metagenedb/apps/catalog/admin/gene.py
+1
-0
1 addition, 0 deletions
backend/metagenedb/apps/catalog/admin/gene.py
backend/metagenedb/apps/catalog/admin/taxonomy.py
+1
-0
1 addition, 0 deletions
backend/metagenedb/apps/catalog/admin/taxonomy.py
with
2 additions
and
0 deletions
backend/metagenedb/apps/catalog/admin/gene.py
+
1
−
0
View file @
7707f5e2
...
@@ -5,6 +5,7 @@ from metagenedb.apps.catalog.models import Gene
...
@@ -5,6 +5,7 @@ from metagenedb.apps.catalog.models import Gene
@admin.register
(
Gene
)
@admin.register
(
Gene
)
class
GeneAdmin
(
admin
.
ModelAdmin
):
class
GeneAdmin
(
admin
.
ModelAdmin
):
exclude
=
(
'
functions
'
,
'
taxonomy
'
)
list_display
=
(
'
gene_id
'
,
'
name
'
,
'
length
'
,
'
get_functions
'
,
'
get_taxonomy
'
)
list_display
=
(
'
gene_id
'
,
'
name
'
,
'
length
'
,
'
get_functions
'
,
'
get_taxonomy
'
)
search_fields
=
(
'
name
'
,)
search_fields
=
(
'
name
'
,)
...
...
This diff is collapsed.
Click to expand it.
backend/metagenedb/apps/catalog/admin/taxonomy.py
+
1
−
0
View file @
7707f5e2
...
@@ -10,6 +10,7 @@ RANK_DISPLAY = [f"get_{i}" for i in [
...
@@ -10,6 +10,7 @@ RANK_DISPLAY = [f"get_{i}" for i in [
@admin.register
(
Taxonomy
)
@admin.register
(
Taxonomy
)
class
TaxonomyAdmin
(
admin
.
ModelAdmin
):
class
TaxonomyAdmin
(
admin
.
ModelAdmin
):
exclude
=
(
'
parent
'
,)
list_display
=
(
list_display
=
(
'
tax_id
'
,
'
name
'
,
'
rank
'
,
'
get_parent
'
,
'
tax_id
'
,
'
name
'
,
'
rank
'
,
'
get_parent
'
,
...
...
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