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

Introduce ChangeLoggedModel as a standard model

This commit is contained in:
Jeremy Stretch
2021-03-10 13:35:13 -05:00
parent bac2387f50
commit 19b78e63ce
6 changed files with 19 additions and 12 deletions

View File

@@ -5,7 +5,7 @@ from django.db import models
from dcim.choices import *
from dcim.constants import *
from extras.utils import extras_features
from netbox.models import BigIDModel, ChangeLoggingMixin
from netbox.models import ChangeLoggedModel
from utilities.fields import NaturalOrderingField
from utilities.querysets import RestrictedQuerySet
from utilities.ordering import naturalize_interface
@@ -26,7 +26,7 @@ __all__ = (
)
class ComponentTemplateModel(ChangeLoggingMixin, BigIDModel):
class ComponentTemplateModel(ChangeLoggedModel):
device_type = models.ForeignKey(
to='dcim.DeviceType',
on_delete=models.CASCADE,