aboutsummaryrefslogtreecommitdiffstats
path: root/api/models.py
diff options
context:
space:
mode:
authorGravatar Hasan-Ahmad <[email protected]>2018-10-25 21:02:42 +0100
committerGravatar Hasan-Ahmad <[email protected]>2018-10-25 21:02:42 +0100
commitaebf48cff6e41eb6d8dde695b10380da4e57d733 (patch)
treea58f23912a501a09ce890e9a5983bebd48b545e0 /api/models.py
parentFixed linting (diff)
code presentasion and help text on models
Diffstat (limited to 'api/models.py')
-rw-r--r--api/models.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/api/models.py b/api/models.py
index 2ba50adf..eb9c2e16 100644
--- a/api/models.py
+++ b/api/models.py
@@ -104,12 +104,16 @@ class SnakeName(ModelReprMixin, models.Model):
class SpecialSnake(ModelReprMixin, models.Model):
- """A special snake used by the bot's snake cog."""
+ """A special snake's name, info and image from our database used by the bot's snake cog."""
name = models.CharField(
- max_length=140, primary_key=True
- )
- info = models.TextField()
+ max_length=140,
+ primary_key=True,
+ help_text='A special snake name.'
+ )
+ info = models.TextField(
+ help_text='Info about a special snake.'
+ )
image = models.URLField()
def __str__(self):