Skip to content

Commit

Permalink
Fixes #7644: Prevent inadvertent deletion of prior change records whe…
Browse files Browse the repository at this point in the history
…n deleting objects (#7333 revisited)
  • Loading branch information
jeremystretch committed Oct 27, 2021
1 parent b56cae2 commit 87779b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions docs/release-notes/version-3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

* [#7612](https://github.com/netbox-community/netbox/issues/7612) - Strip HTML from custom field descriptions
* [#7628](https://github.com/netbox-community/netbox/issues/7628) - Fix `load_yaml` method for custom scripts
* [#7644](https://github.com/netbox-community/netbox/issues/7644) - Prevent inadvertent deletion of prior change records when deleting objects (#7333 revisited)

---

Expand Down
5 changes: 0 additions & 5 deletions netbox/netbox/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ class ChangeLoggingMixin(models.Model):
blank=True,
null=True
)
object_changes = GenericRelation(
to='extras.ObjectChange',
content_type_field='changed_object_type',
object_id_field='changed_object_id'
)

class Meta:
abstract = True
Expand Down

0 comments on commit 87779b7

Please sign in to comment.