FIX: Prefix field still too limited for legacy data

Fingers crossed this works I don't have the actual data locally... I know I'm making a mess but needs must.

I genuinely hate whoever decided prefixes were a good idea now.
This commit is contained in:
2019-12-06 00:58:35 +00:00
parent 602ccc15ea
commit ddc23ce4e5

View File

@@ -42,7 +42,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='asset',
name='asset_id_prefix',
field=models.CharField(default='', max_length=5),
field=models.CharField(default='', max_length=8),
),
migrations.RunPython(
code=forwards,
@@ -56,10 +56,5 @@ class Migration(migrations.Migration):
model_name='asset',
name='asset_id',
field=models.CharField(max_length=15, unique=True),
),
migrations.AlterField(
model_name='asset',
name='asset_id_prefix',
field=models.CharField(default='', max_length=8),
),
)
]