From 2ae5f5205ec19dbc1574b6136da9479e080c6ba2 Mon Sep 17 00:00:00 2001 From: Hasan-Ahmad Date: Thu, 11 Oct 2018 16:14:34 +0100 Subject: Added snake facts api --- api/models.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'api/models.py') diff --git a/api/models.py b/api/models.py index e5ec7992..32f978d4 100644 --- a/api/models.py +++ b/api/models.py @@ -77,6 +77,19 @@ class SnakeName(ModelReprMixin, models.Model): return f"{self.name} ({self.scientific})" +class SnakeFact(ModelReprMixin, models.Model): + """A snake fact used by the bot's snake cog.""" + + fact = models.CharField( + primary_key=True, + max_length=200, + help_text="A fact about snakes." + ) + + def __str__(self): + return f"{self.fact}" + + class Role(ModelReprMixin, models.Model): """A role on our Discord server.""" -- cgit v1.2.3