Skip to content

Commit

Permalink
14424 Remove ChangeLoggedModel from StagedChange (#14476)
Browse files Browse the repository at this point in the history
* 14424 remove ChangeLoggedModel from StagedChange

* 14424 rename migration
  • Loading branch information
arthanson authored Dec 11, 2023
1 parent d428dd1 commit 965f2de
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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',
),
]
3 changes: 2 additions & 1 deletion netbox/extras/models/staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from extras.choices import ChangeActionChoices
from netbox.models import ChangeLoggedModel
from netbox.models.features import *
from utilities.utils import deserialize_object

__all__ = (
Expand Down Expand Up @@ -54,7 +55,7 @@ def merge(self):
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
future point.
Expand Down

0 comments on commit 965f2de

Please sign in to comment.