From 8855bcb2baf4ceb845ac2b46bfdaf70da22a8cb8 Mon Sep 17 00:00:00 2001 From: Dana Lambert Date: Tue, 2 Nov 2021 09:20:47 +1300 Subject: [PATCH] Update commonname field to have a max_length of 200 --- backend/right_tree/api/migrations/0001_initial.py | 4 ++-- backend/right_tree/api/models.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/right_tree/api/migrations/0001_initial.py b/backend/right_tree/api/migrations/0001_initial.py index 17d6a07..14987b9 100644 --- a/backend/right_tree/api/migrations/0001_initial.py +++ b/backend/right_tree/api/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 3.2.8 on 2021-10-15 01:23 +# Generated by Django 3.2.8 on 2021-11-01 20:04 import django.contrib.gis.db.models.fields from django.db import migrations, models @@ -58,7 +58,7 @@ class Migration(migrations.Migration): fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, unique=True)), - ('commonname', models.CharField(blank=True, max_length=50, null=True)), + ('commonname', models.CharField(blank=True, max_length=200, null=True)), ('maxheight', models.FloatField()), ('spacing', models.FloatField()), ('synonym', models.CharField(blank=True, max_length=200, null=True)), diff --git a/backend/right_tree/api/models.py b/backend/right_tree/api/models.py index 8d0292d..33e54fc 100644 --- a/backend/right_tree/api/models.py +++ b/backend/right_tree/api/models.py @@ -55,7 +55,7 @@ class ToleranceLevel(models.Model): class Plant(models.Model): name = models.CharField(unique=True, max_length=50) - commonname = models.CharField(null=True, blank=True, max_length=50) + commonname = models.CharField(null=True, blank=True, max_length=200) maxheight = models.FloatField() spacing = models.FloatField() synonym = models.CharField(null=True, blank=True, max_length=200)