1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Device.face to slug (#3569)

This commit is contained in:
Jeremy Stretch
2019-11-25 19:23:43 -05:00
parent 5c95927a43
commit bcc34f6099
10 changed files with 89 additions and 37 deletions

View File

@@ -195,7 +195,7 @@ class VirtualMachine(ChangeLoggedModel, ConfigContextModel, CustomFieldModel):
)
status = models.PositiveSmallIntegerField(
choices=VM_STATUS_CHOICES,
default=DEVICE_STATUS_ACTIVE,
default=1, # TODO: Replace with ChoiceSet value
verbose_name='Status'
)
role = models.ForeignKey(