Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
django-biodblinks
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hub
django-biodblinks
Commits
4d24916a
Commit
4d24916a
authored
4 years ago
by
Hervé Ménager
Browse files
Options
Downloads
Patches
Plain Diff
minor reformats with black
parent
0cc01c37
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
biodblinks/apps.py
+1
-1
1 addition, 1 deletion
biodblinks/apps.py
biodblinks/migrations/0001_initial.py
+29
-17
29 additions, 17 deletions
biodblinks/migrations/0001_initial.py
biodblinks/models.py
+2
-1
2 additions, 1 deletion
biodblinks/models.py
with
32 additions
and
19 deletions
biodblinks/apps.py
+
1
−
1
View file @
4d24916a
...
...
@@ -2,4 +2,4 @@ from django.apps import AppConfig
class
BiodblinksConfig
(
AppConfig
):
name
=
'
biodblinks
'
name
=
"
biodblinks
"
This diff is collapsed.
Click to expand it.
biodblinks/migrations/0001_initial.py
+
29
−
17
View file @
4d24916a
...
...
@@ -4,28 +4,40 @@ import sys
from
django.conf
import
settings
from
django.db
import
migrations
,
models
IS_TEST_DB
=
'
test
'
in
sys
.
argv
IS_TEST_DB
=
"
test
"
in
sys
.
argv
or
"
load_tests.py
"
in
sys
.
argv
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
]
dependencies
=
[]
operations
=
[
]
operations
=
[]
if
IS_TEST_DB
:
operations
.
extend
([
migrations
.
CreateModel
(
name
=
'
Resource
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
title
'
,
models
.
TextField
(
verbose_name
=
'
Resource Title
'
)),
(
'
url
'
,
models
.
TextField
(
verbose_name
=
'
Resource URL
'
)),
(
'
record_id
'
,
models
.
TextField
(
verbose_name
=
'
Record ID
'
)),
(
'
record_source
'
,
models
.
TextField
(
verbose_name
=
'
Record source
'
)),
],
),
])
operations
.
extend
(
[
migrations
.
CreateModel
(
name
=
"
Resource
"
,
fields
=
[
(
"
id
"
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
"
ID
"
,
),
),
(
"
title
"
,
models
.
TextField
(
verbose_name
=
"
Resource Title
"
)),
(
"
url
"
,
models
.
TextField
(
verbose_name
=
"
Resource URL
"
)),
(
"
record_id
"
,
models
.
TextField
(
verbose_name
=
"
Record ID
"
)),
(
"
record_source
"
,
models
.
TextField
(
verbose_name
=
"
Record source
"
),
),
],
),
]
)
This diff is collapsed.
Click to expand it.
biodblinks/models.py
+
2
−
1
View file @
4d24916a
from
django.db
import
models
class
Resource
(
models
.
Model
):
title
=
models
.
TextField
(
"
Resource Title
"
)
url
=
models
.
TextField
(
"
Resource URL
"
)
record_id
=
models
.
TextField
(
"
Record ID
"
)
record_source
=
models
.
TextField
(
"
Record source
"
)
\ No newline at end of file
record_source
=
models
.
TextField
(
"
Record source
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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