mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 18:08:38 -06:00
14424 Remove ChangeLoggedModel from StagedChange (#14476)
* 14424 remove ChangeLoggedModel from StagedChange * 14424 rename migration
This commit is contained in:
parent
d428dd172c
commit
965f2de34b
@ -0,0 +1,20 @@
|
|||||||
|
# Generated by Django 4.2.5 on 2023-12-08 16:03
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
dependencies = [
|
||||||
|
('extras', '0103_gfk_indexes'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='stagedchange',
|
||||||
|
name='created',
|
||||||
|
),
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='stagedchange',
|
||||||
|
name='last_updated',
|
||||||
|
),
|
||||||
|
]
|
@ -7,6 +7,7 @@ from django.utils.translation import gettext_lazy as _
|
|||||||
|
|
||||||
from extras.choices import ChangeActionChoices
|
from extras.choices import ChangeActionChoices
|
||||||
from netbox.models import ChangeLoggedModel
|
from netbox.models import ChangeLoggedModel
|
||||||
|
from netbox.models.features import *
|
||||||
from utilities.utils import deserialize_object
|
from utilities.utils import deserialize_object
|
||||||
|
|
||||||
__all__ = (
|
__all__ = (
|
||||||
@ -54,7 +55,7 @@ class Branch(ChangeLoggedModel):
|
|||||||
self.staged_changes.all().delete()
|
self.staged_changes.all().delete()
|
||||||
|
|
||||||
|
|
||||||
class StagedChange(ChangeLoggedModel):
|
class StagedChange(CustomValidationMixin, EventRulesMixin, models.Model):
|
||||||
"""
|
"""
|
||||||
The prepared creation, modification, or deletion of an object to be applied to the active database at a
|
The prepared creation, modification, or deletion of an object to be applied to the active database at a
|
||||||
future point.
|
future point.
|
||||||
|
Loading…
Reference in New Issue
Block a user