aboutsummaryrefslogtreecommitdiffstats
path: root/api/models.py
diff options
context:
space:
mode:
authorGravatar Hasan-Ahmad <[email protected]>2018-10-27 17:27:11 +0100
committerGravatar Hasan-Ahmad <[email protected]>2018-10-27 17:27:11 +0100
commitd3268527642df788531e3cd07a3e293b6d4affc7 (patch)
tree75da35d82e7514f8dd1df26364c478a7ccc57de7 /api/models.py
parentMerge branch 'special_snakes' of https://gitlab.com/python-discord/projects/s... (diff)
Changed image urlfield to ArrayField
Diffstat (limited to 'api/models.py')
-rw-r--r--api/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/api/models.py b/api/models.py
index eb9c2e16..bc778330 100644
--- a/api/models.py
+++ b/api/models.py
@@ -114,7 +114,9 @@ class SpecialSnake(ModelReprMixin, models.Model):
info = models.TextField(
help_text='Info about a special snake.'
)
- image = models.URLField()
+ images = pgfields.ArrayField(
+ models.URLField()
+ )
def __str__(self):
return self.name