mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
* adds config template to vm model #12461 * Add translation tags; collapse config data * i18n cleanup * Establish parity with DeviceRenderConfigView * Move config_template field to RenderConfigMixin --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
29 lines
1.1 KiB
Python
29 lines
1.1 KiB
Python
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('extras', '0086_configtemplate'),
|
|
('dcim', '0169_devicetype_default_platform'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='device',
|
|
name='config_template',
|
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='%(class)ss', to='extras.configtemplate'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='devicerole',
|
|
name='config_template',
|
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='device_roles', to='extras.configtemplate'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='platform',
|
|
name='config_template',
|
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='platforms', to='extras.configtemplate'),
|
|
),
|
|
]
|