Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Metagenomics
metagenedb
Commits
62230a4e
Commit
62230a4e
authored
Apr 22, 2021
by
Kenzo-Hugo Hillion
♻
Browse files
fix flake8
parent
41e9453b
Pipeline
#54372
passed with stages
in 3 minutes and 49 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
backend/metagenedb/apps/catalog/factory/gene.py
View file @
62230a4e
from
factory
import
(
Faker
,
RelatedFactory
,
SubFactory
,
fuzzy
Faker
,
RelatedFactory
,
SubFactory
)
from
factory.django
import
DjangoModelFactory
...
...
backend/metagenedb/apps/catalog/models/source.py
View file @
62230a4e
...
...
@@ -11,7 +11,7 @@ class Source(models.Model):
tools
=
models
.
JSONField
(
blank
=
True
,
null
=
True
)
def
save
(
self
,
*
args
,
**
kwargs
):
self
.
slug
=
slugify
(
self
.
name
)
self
.
slug
=
slugify
(
self
.
name
)
super
(
Source
,
self
).
save
(
*
args
,
**
kwargs
)
def
__str__
(
self
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment