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:
@ -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)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user