From 29bddfad14658ca2c7584b315cfdbc8a9aea6377 Mon Sep 17 00:00:00 2001 From: awieckowski Date: Wed, 30 Oct 2024 12:36:08 +0100 Subject: [PATCH 1/2] Increase max user department field length --- src/ralph/accounts/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ralph/accounts/models.py b/src/ralph/accounts/models.py index d936cc4e35..bff526468b 100644 --- a/src/ralph/accounts/models.py +++ b/src/ralph/accounts/models.py @@ -102,7 +102,7 @@ class RalphUser( ) department = models.CharField( verbose_name=_('department'), - max_length=64, + max_length=128, blank=True, ) manager = models.CharField( From 09ec85286359f2e79ac78a678deab3c10072b49f Mon Sep 17 00:00:00 2001 From: awieckowski Date: Wed, 30 Oct 2024 12:36:55 +0100 Subject: [PATCH 2/2] Add missing migration --- .../migrations/0010_auto_20241030_1235.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/ralph/accounts/migrations/0010_auto_20241030_1235.py diff --git a/src/ralph/accounts/migrations/0010_auto_20241030_1235.py b/src/ralph/accounts/migrations/0010_auto_20241030_1235.py new file mode 100644 index 0000000000..41c9d3b7ca --- /dev/null +++ b/src/ralph/accounts/migrations/0010_auto_20241030_1235.py @@ -0,0 +1,18 @@ +# Generated by Django 2.0.13 on 2024-10-30 12:35 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('accounts', '0009_auto_20240621_1217'), + ] + + operations = [ + migrations.AlterField( + model_name='ralphuser', + name='department', + field=models.CharField(blank=True, max_length=128, verbose_name='department'), + ), + ]