From df25b3a828f042cd63119d27673d665afb76abb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laur=C3=A9line=20Gu=C3=A9rin?= Date: Fri, 5 Nov 2021 10:51:00 +0100 Subject: [PATCH] wcs: card cell, card_id increase max_length (#58412) --- combo/apps/wcs/migrations/0041_card_id.py | 16 ++++++++++++++++ combo/apps/wcs/models.py | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 combo/apps/wcs/migrations/0041_card_id.py diff --git a/combo/apps/wcs/migrations/0041_card_id.py b/combo/apps/wcs/migrations/0041_card_id.py new file mode 100644 index 00000000..a64d8728 --- /dev/null +++ b/combo/apps/wcs/migrations/0041_card_id.py @@ -0,0 +1,16 @@ +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('wcs', '0040_cards_limit'), + ] + + operations = [ + migrations.AlterField( + model_name='wcscardinfoscell', + name='card_id', + field=models.CharField(blank=True, max_length=1000, verbose_name='Card Identifier'), + ), + ] diff --git a/combo/apps/wcs/models.py b/combo/apps/wcs/models.py index 6af7f44d..07486566 100644 --- a/combo/apps/wcs/models.py +++ b/combo/apps/wcs/models.py @@ -898,7 +898,7 @@ class WcsCardsCell(CardMixin, WcsBlurpMixin, CellBase): @register_cell_class class WcsCardInfosCell(CardMixin, CellBase): carddef_reference = models.CharField(_('Card Model'), max_length=150) - card_id = models.CharField(_('Card Identifier'), max_length=150, blank=True) + card_id = models.CharField(_('Card Identifier'), max_length=1000, blank=True) without_user = models.BooleanField(_('Ignore the logged-in user'), default=False) custom_schema = JSONField(blank=True, default=dict)