diff options
| author | 2018-10-29 19:22:01 +0000 | |
|---|---|---|
| committer | 2018-10-29 19:22:01 +0000 | |
| commit | 342dfc39e4240c5f061abacdba2f7e301b33cbe6 (patch) | |
| tree | 3ae797514bd5d13582075165936aaa503e38daef | |
| parent | Changed image urlfield to ArrayField (diff) | |
Added help text
Diffstat (limited to '')
| -rw-r--r-- | api/migrations/0017_auto_20181029_1921.py | 19 | ||||
| -rw-r--r-- | api/models.py | 3 | 
2 files changed, 21 insertions, 1 deletions
| diff --git a/api/migrations/0017_auto_20181029_1921.py b/api/migrations/0017_auto_20181029_1921.py new file mode 100644 index 00000000..012bda61 --- /dev/null +++ b/api/migrations/0017_auto_20181029_1921.py @@ -0,0 +1,19 @@ +# Generated by Django 2.1.2 on 2018-10-29 19:21 + +import django.contrib.postgres.fields +from django.db import migrations, models + + +class Migration(migrations.Migration): + +    dependencies = [ +        ('api', '0016_auto_20181027_1619'), +    ] + +    operations = [ +        migrations.AlterField( +            model_name='specialsnake', +            name='images', +            field=django.contrib.postgres.fields.ArrayField(base_field=models.URLField(), help_text='Images displaying this special snake.', size=None), +        ), +    ] diff --git a/api/models.py b/api/models.py index bc778330..9990e266 100644 --- a/api/models.py +++ b/api/models.py @@ -115,7 +115,8 @@ class SpecialSnake(ModelReprMixin, models.Model):          help_text='Info about a special snake.'      )      images = pgfields.ArrayField( -        models.URLField() +        models.URLField(), +        help_text='Images displaying this special snake.'      )      def __str__(self): | 
