diff options
| author | 2018-10-27 17:27:11 +0100 | |
|---|---|---|
| committer | 2018-10-27 17:27:11 +0100 | |
| commit | d3268527642df788531e3cd07a3e293b6d4affc7 (patch) | |
| tree | 75da35d82e7514f8dd1df26364c478a7ccc57de7 /api/models.py | |
| parent | Merge branch 'special_snakes' of https://gitlab.com/python-discord/projects/s... (diff) | |
Changed image urlfield to ArrayField
Diffstat (limited to '')
| -rw-r--r-- | api/models.py | 4 | 
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 | 
