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
4c71c73b
Commit
4c71c73b
authored
5 years ago
by
Kenzo-Hugo Hillion
Browse files
Options
Downloads
Patches
Plain Diff
update README and fix flake8
parent
c32cff22
No related branches found
Branches containing commit
No related tags found
2 merge requests
!59
Prod
,
!14
Resolve "Update scripts to use new `PUT` and `POST` to populate database"
Pipeline
#14595
passed with stages
Stage:
Stage:
in 2 minutes and 40 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+2
-2
2 additions, 2 deletions
README.md
backend/metagenedb/apps/catalog/models/gene.py
+1
-0
1 addition, 0 deletions
backend/metagenedb/apps/catalog/models/gene.py
backend/metagenedb/apps/catalog/serializers/gene.py
+4
-0
4 additions, 0 deletions
backend/metagenedb/apps/catalog/serializers/gene.py
with
7 additions
and
2 deletions
README.md
+
2
−
2
View file @
4c71c73b
# Metagenedb
[

](https://gitlab.pasteur.fr/
metagenomics/metagenedb/commits/dev
)
[

](https://gitlab.pasteur.fr/
metagenomics/metagenedb/commits/dev
)
[

](https://gitlab.pasteur.fr/
%{project_path}/commits/%{default_branch}
)
[

](https://gitlab.pasteur.fr/
%{project_path}/commits/%{default_branch}
)
Django based project to build genes catalog and tools
to play with it and contact external services.
...
...
This diff is collapsed.
Click to expand it.
backend/metagenedb/apps/catalog/models/gene.py
+
1
−
0
View file @
4c71c73b
...
...
@@ -20,6 +20,7 @@ class Gene(models.Model):
class
Meta
:
ordering
=
[
'
-gene_id
'
]
class
GeneFunction
(
models
.
Model
):
gene
=
models
.
ForeignKey
(
Gene
,
on_delete
=
models
.
CASCADE
)
function
=
models
.
ForeignKey
(
Function
,
on_delete
=
models
.
CASCADE
)
...
...
This diff is collapsed.
Click to expand it.
backend/metagenedb/apps/catalog/serializers/gene.py
+
4
−
0
View file @
4c71c73b
...
...
@@ -16,6 +16,10 @@ class GeneListSerializer(BulkListSerializer):
class
Meta
:
model
=
Gene
def
create
(
self
,
validated_data
):
instances
=
super
().
create
(
validated_data
)
return
instances
class
GeneSerializer
(
serializers
.
ModelSerializer
):
functions
=
FunctionSerializer
(
...
...
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