switched port field to a JSONField adds a helper function to display server port mapping in admin launching a container will map the ports appropriately Instead of typing json to map ports we have a widget replaced by such text fields. where one can + button to add or - to remove i.e. [container_port/proto]:[host_port] At first port was an IntegerField. Hence i added a manual migration which is the latest one to get them to be default:port(old value) Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
19 lines
395 B
Python
19 lines
395 B
Python
# Generated by Django 5.1.5 on 2025-04-22 19:42
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("webpanel", "0011_alter_server_port"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterField(
|
|
model_name="server",
|
|
name="port",
|
|
field=models.JSONField(blank=True, default=dict),
|
|
),
|
|
]
|