From c7e10bd0446569a260f595dc14b47da8f927989d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=20Pezz=C3=A8?= Date: Tue, 17 Dec 2019 17:27:01 +0100 Subject: [PATCH] feat: address new max length for iso639 --- .../migrations/0004_iso639length_20191217.py | 18 ++++++++++++++++++ pokemon_v2/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 pokemon_v2/migrations/0004_iso639length_20191217.py diff --git a/pokemon_v2/migrations/0004_iso639length_20191217.py b/pokemon_v2/migrations/0004_iso639length_20191217.py new file mode 100644 index 00000000..3d81baf2 --- /dev/null +++ b/pokemon_v2/migrations/0004_iso639length_20191217.py @@ -0,0 +1,18 @@ +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('pokemon_v2', '0003_auto_20160530_1132'), + ] + + operations = [ + migrations.AlterField( + model_name='language', + name='iso639', + field=models.CharField(max_length=10), + preserve_default=True, + ), + + ] diff --git a/pokemon_v2/models.py b/pokemon_v2/models.py index 9496b151..dc93eb49 100755 --- a/pokemon_v2/models.py +++ b/pokemon_v2/models.py @@ -499,7 +499,7 @@ class VersionGroupMoveLearnMethod(HasVersionGroup, HasMoveLearnMethod): class Language(HasName, HasOrder): - iso639 = models.CharField(max_length=2) + iso639 = models.CharField(max_length=10) iso3166 = models.CharField(max_length=2)