Projet

Général

Profil

0001-wcs-card-cell-card_id-increase-max_length-58412.patch

Lauréline Guérin, 05 novembre 2021 10:52

Télécharger (1,77 ko)

Voir les différences:

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
combo/apps/wcs/migrations/0041_card_id.py
1
from django.db import migrations, models
2

  
3

  
4
class Migration(migrations.Migration):
5

  
6
    dependencies = [
7
        ('wcs', '0040_cards_limit'),
8
    ]
9

  
10
    operations = [
11
        migrations.AlterField(
12
            model_name='wcscardinfoscell',
13
            name='card_id',
14
            field=models.CharField(blank=True, max_length=1000, verbose_name='Card Identifier'),
15
        ),
16
    ]
combo/apps/wcs/models.py
898 898
@register_cell_class
899 899
class WcsCardInfosCell(CardMixin, CellBase):
900 900
    carddef_reference = models.CharField(_('Card Model'), max_length=150)
901
    card_id = models.CharField(_('Card Identifier'), max_length=150, blank=True)
901
    card_id = models.CharField(_('Card Identifier'), max_length=1000, blank=True)
902 902
    without_user = models.BooleanField(_('Ignore the logged-in user'), default=False)
903 903
    custom_schema = JSONField(blank=True, default=dict)
904 904

  
905
-