diff --git a/apps/tickets/migrations/0013_ticket_serial_num.py b/apps/tickets/migrations/0013_ticket_serial_num.py index 3da9f3b8b..4c457d21f 100644 --- a/apps/tickets/migrations/0013_ticket_serial_num.py +++ b/apps/tickets/migrations/0013_ticket_serial_num.py @@ -38,7 +38,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='ticket', name='serial_num', - field=models.CharField(max_length=256, null=True, unique=True, verbose_name='Serial number'), + field=models.CharField(max_length=128, null=True, unique=True, verbose_name='Serial number'), ), migrations.RunPython(fill_ticket_serial_number), ] diff --git a/apps/tickets/models/ticket.py b/apps/tickets/models/ticket.py index 8047c4a06..f8d7be16c 100644 --- a/apps/tickets/models/ticket.py +++ b/apps/tickets/models/ticket.py @@ -77,7 +77,7 @@ class Ticket(CommonModelMixin, OrgModelMixin): 'TicketFlow', related_name='tickets', on_delete=models.SET_NULL, null=True, verbose_name=_("TicketFlow") ) - serial_num = models.CharField(max_length=256, unique=True, null=True, verbose_name=_('Serial number')) + serial_num = models.CharField(max_length=128, unique=True, null=True, verbose_name=_('Serial number')) class Meta: ordering = ('-date_created',)