Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
django_tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
schwede
django_tutorial
Commits
673ae148
Commit
673ae148
authored
9 years ago
by
Andrew Waterhouse
Browse files
Options
Downloads
Patches
Plain Diff
Add some data from latest SMTL
parent
5a783175
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LigandWorld/annotator/models.py
+4
-0
4 additions, 0 deletions
LigandWorld/annotator/models.py
LigandWorld/db.sqlite3
+0
-0
0 additions, 0 deletions
LigandWorld/db.sqlite3
with
4 additions
and
0 deletions
LigandWorld/annotator/models.py
+
4
−
0
View file @
673ae148
...
...
@@ -5,6 +5,8 @@ from django.db import models
class
Biounit
(
models
.
Model
):
class
Meta
:
# Optional but
db_table
=
'
biounits
'
# Recommended, name your DB table
def
__unicode__
(
self
):
# Optional
return
self
.
smtl_id
# returns unicode representation of this object
smtl_id
=
models
.
CharField
(
max_length
=
10
)
title
=
models
.
TextField
()
...
...
@@ -13,6 +15,8 @@ class Biounit(models.Model):
class
Ligand
(
models
.
Model
):
class
Meta
:
# Optional but
db_table
=
'
ligands
'
# Recommended, name your DB table
def
__unicode__
(
self
):
# Optional
return
self
.
shortname
# returns unicode representation of this object
biounit
=
models
.
ForeignKey
(
Biounit
)
shortname
=
models
.
CharField
(
max_length
=
3
)
...
...
This diff is collapsed.
Click to expand it.
LigandWorld/db.sqlite3
+
0
−
0
View file @
673ae148
No preview for this file type
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