diff options
author | 2018-10-13 15:33:15 +0100 | |
---|---|---|
committer | 2018-10-13 15:33:15 +0100 | |
commit | 833cc690736fc301303299b41e9e874b8e430983 (patch) | |
tree | 86d17120a1ccd689d7024333728540150fd89552 /api/models.py | |
parent | Added snake facts api (diff) |
fixed ordering
Diffstat (limited to 'api/models.py')
-rw-r--r-- | api/models.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/api/models.py b/api/models.py index 32f978d4..c37417eb 100644 --- a/api/models.py +++ b/api/models.py @@ -60,6 +60,19 @@ class OffTopicChannelName(ModelReprMixin, models.Model): return self.name +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 SnakeName(ModelReprMixin, models.Model): """A snake name used by the bot's snake cog.""" @@ -77,19 +90,6 @@ 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.""" |