aboutsummaryrefslogtreecommitdiffstats
path: root/api/models.py
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-08-15 19:29:09 +0200
committerGravatar Johannes Christ <[email protected]>2018-08-15 19:29:09 +0200
commitc5950d3e0782a8553e6e2f070618b58fc6a3677f (patch)
tree281d619073cc86c2fcf621232b21941ef9aa6127 /api/models.py
parentAdd `api` to `INSTALLED_APPS`. (diff)
Add the `SnakeName` model.
Diffstat (limited to 'api/models.py')
-rw-r--r--api/models.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/api/models.py b/api/models.py
index 71a83623..6d07beff 100644
--- a/api/models.py
+++ b/api/models.py
@@ -1,3 +1,6 @@
from django.db import models
-# Create your models here.
+
+class SnakeName(models.Model):
+ name = models.CharField(primary_key=True, max_length=100)
+ scientific = models.CharField(max_length=150)