mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-15 19:52:52 -06:00

Adds: - dcim.choices.PowerOutletStatusChoices - dcim.models.device_components.PowerOutlet.status field with `choices` set to PowerOutletStatusChoices - adds migration for PowerOutlet.status field - updates breaking view tests
17 lines
360 B
Python
17 lines
360 B
Python
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('dcim', '0200_populate_mac_addresses'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='poweroutlet',
|
|
name='status',
|
|
field=models.CharField(default='enabled', max_length=50),
|
|
),
|
|
]
|