From 6a18a8dfcf8382b896e28d9bd354196517f654ee Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Thu, 16 Aug 2018 21:48:42 +0200 Subject: Add the `DocumentationLink` model. --- api/models.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'api/models.py') diff --git a/api/models.py b/api/models.py index 6d07beff..877e3622 100644 --- a/api/models.py +++ b/api/models.py @@ -1,6 +1,16 @@ from django.db import models +class DocumentationLink(models.Model): + """A documentation link used by the `!docs` command of the bot.""" + + package = models.CharField(primary_key=True, max_length=50) + base_url = models.URLField() + inventory_url = models.URLField() + + class SnakeName(models.Model): + """A snake name used by the bot's snake cog.""" + name = models.CharField(primary_key=True, max_length=100) scientific = models.CharField(max_length=150) -- cgit v1.2.3