From 6dc96bb348dca5406c5d18126cc02aedd5b01d03 Mon Sep 17 00:00:00 2001 From: Ariel Rin Date: Wed, 20 Oct 2021 15:24:54 +1000 Subject: [PATCH] Extend State name to 32 chars --- .../migrations/0018_alter_state_name_length.py | 18 ++++++++++++++++++ allianceauth/authentication/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 allianceauth/authentication/migrations/0018_alter_state_name_length.py diff --git a/allianceauth/authentication/migrations/0018_alter_state_name_length.py b/allianceauth/authentication/migrations/0018_alter_state_name_length.py new file mode 100644 index 00000000..1b8096d6 --- /dev/null +++ b/allianceauth/authentication/migrations/0018_alter_state_name_length.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.8 on 2021-10-20 05:22 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('authentication', '0017_remove_fleetup_permission'), + ] + + operations = [ + migrations.AlterField( + model_name='state', + name='name', + field=models.CharField(max_length=32, unique=True), + ), + ] diff --git a/allianceauth/authentication/models.py b/allianceauth/authentication/models.py index 8ca6cef6..c726b979 100755 --- a/allianceauth/authentication/models.py +++ b/allianceauth/authentication/models.py @@ -12,7 +12,7 @@ logger = logging.getLogger(__name__) class State(models.Model): - name = models.CharField(max_length=20, unique=True) + name = models.CharField(max_length=32, unique=True) permissions = models.ManyToManyField(Permission, blank=True) priority = models.IntegerField(unique=True, help_text="Users get assigned the state with the highest priority available to them.")