mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 08:38:16 -06:00
10500 add ModularComponentModel
This commit is contained in:
parent
d293a8b87e
commit
4bd27edf10
@ -1,4 +1,4 @@
|
||||
# Generated by Django 5.0.7 on 2024-07-23 10:07
|
||||
# Generated by Django 5.0.7 on 2024-07-23 10:12
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
@ -12,7 +12,7 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='devicebay',
|
||||
model_name='modulebay',
|
||||
name='module',
|
||||
field=models.ForeignKey(
|
||||
blank=True,
|
||||
@ -23,7 +23,7 @@ class Migration(migrations.Migration):
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='devicebaytemplate',
|
||||
model_name='modulebaytemplate',
|
||||
name='module_type',
|
||||
field=models.ForeignKey(
|
||||
blank=True,
|
||||
@ -34,7 +34,7 @@ class Migration(migrations.Migration):
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='devicebaytemplate',
|
||||
model_name='modulebaytemplate',
|
||||
name='device_type',
|
||||
field=models.ForeignKey(
|
||||
blank=True,
|
@ -628,7 +628,7 @@ class RearPortTemplate(ModularComponentTemplateModel):
|
||||
}
|
||||
|
||||
|
||||
class ModuleBayTemplate(ComponentTemplateModel):
|
||||
class ModuleBayTemplate(ModularComponentTemplateModel):
|
||||
"""
|
||||
A template for a ModuleBay to be created for a new parent Device.
|
||||
"""
|
||||
@ -663,7 +663,7 @@ class ModuleBayTemplate(ComponentTemplateModel):
|
||||
}
|
||||
|
||||
|
||||
class DeviceBayTemplate(ModularComponentTemplateModel):
|
||||
class DeviceBayTemplate(ComponentTemplateModel):
|
||||
"""
|
||||
A template for a DeviceBay to be created for a new parent Device.
|
||||
"""
|
||||
|
@ -1087,7 +1087,7 @@ class RearPort(ModularComponentModel, CabledObjectModel, TrackingModelMixin):
|
||||
# Bays
|
||||
#
|
||||
|
||||
class ModuleBay(ComponentModel, TrackingModelMixin):
|
||||
class ModuleBay(ModularComponentModel, TrackingModelMixin):
|
||||
"""
|
||||
An empty space within a Device which can house a child device
|
||||
"""
|
||||
@ -1108,7 +1108,7 @@ class ModuleBay(ComponentModel, TrackingModelMixin):
|
||||
return reverse('dcim:modulebay', kwargs={'pk': self.pk})
|
||||
|
||||
|
||||
class DeviceBay(ModularComponentModel, TrackingModelMixin):
|
||||
class DeviceBay(ComponentModel, TrackingModelMixin):
|
||||
"""
|
||||
An empty space within a Device which can house a child device
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user