wcs: card cell, card_id increase max_length (#58412)
gitea-wip/combo/pipeline/head There was a failure building this commit Details
gitea/combo/pipeline/head Build queued... Details

This commit is contained in:
Lauréline Guérin 2021-11-05 10:51:00 +01:00
parent 1673d2def7
commit df25b3a828
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
2 changed files with 17 additions and 1 deletions

View File

@ -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'),
),
]

View File

@ -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)