From d3268527642df788531e3cd07a3e293b6d4affc7 Mon Sep 17 00:00:00 2001 From: Hasan-Ahmad Date: Sat, 27 Oct 2018 17:27:11 +0100 Subject: Changed image urlfield to ArrayField --- api/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'api/models.py') 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 -- cgit v1.2.3