From 833cc690736fc301303299b41e9e874b8e430983 Mon Sep 17 00:00:00 2001 From: Hasan-Ahmad Date: Sat, 13 Oct 2018 15:33:15 +0100 Subject: fixed ordering --- api/models.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'api/models.py') 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.""" -- cgit v1.2.3