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

Fixes #7644: Prevent inadvertent deletion of prior change records when deleting objects (#7333 revisited)

This commit is contained in:
jeremystretch
2021-10-27 09:44:15 -04:00
parent b56cae24c5
commit 87779b7b88
2 changed files with 1 additions and 5 deletions

View File

@ -6,6 +6,7 @@
* [#7612](https://github.com/netbox-community/netbox/issues/7612) - Strip HTML from custom field descriptions * [#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 * [#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)
--- ---

View File

@ -40,11 +40,6 @@ class ChangeLoggingMixin(models.Model):
blank=True, blank=True,
null=True null=True
) )
object_changes = GenericRelation(
to='extras.ObjectChange',
content_type_field='changed_object_type',
object_id_field='changed_object_id'
)
class Meta: class Meta:
abstract = True abstract = True