diff --git a/apps/assets/migrations/0093_auto_20220403_1627.py b/apps/assets/migrations/0093_auto_20220403_1627.py index d28d8cfc0..c34c70ed7 100644 --- a/apps/assets/migrations/0093_auto_20220403_1627.py +++ b/apps/assets/migrations/0093_auto_20220403_1627.py @@ -93,7 +93,7 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='asset', name='address', - field=models.CharField(db_index=True, max_length=1024, verbose_name='Address'), + field=models.CharField(db_index=True, max_length=767, verbose_name='Address'), ), migrations.AddField( model_name='asset', diff --git a/apps/assets/models/asset/common.py b/apps/assets/models/asset/common.py index 54fa473bd..74df4a358 100644 --- a/apps/assets/models/asset/common.py +++ b/apps/assets/models/asset/common.py @@ -100,7 +100,7 @@ class Asset(NodesRelationMixin, AbsConnectivity, JMSOrgBaseModel): Type = const.AllTypes name = models.CharField(max_length=128, verbose_name=_('Name')) - address = models.CharField(max_length=1024, verbose_name=_('Address'), db_index=True) + address = models.CharField(max_length=767, verbose_name=_('Address'), db_index=True) platform = models.ForeignKey(Platform, on_delete=models.PROTECT, verbose_name=_("Platform"), related_name='assets') domain = models.ForeignKey("assets.Domain", null=True, blank=True, related_name='assets', verbose_name=_("Domain"), on_delete=models.SET_NULL)