diff options
author | 2018-08-15 19:29:09 +0200 | |
---|---|---|
committer | 2018-08-15 19:29:09 +0200 | |
commit | c5950d3e0782a8553e6e2f070618b58fc6a3677f (patch) | |
tree | 281d619073cc86c2fcf621232b21941ef9aa6127 /api/models.py | |
parent | Add `api` to `INSTALLED_APPS`. (diff) |
Add the `SnakeName` model.
Diffstat (limited to 'api/models.py')
-rw-r--r-- | api/models.py | 5 |
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) |