From 30eb48b580ed26c8c4971ab39abcbd37160b95b4 Mon Sep 17 00:00:00 2001 From: Arthur Date: Thu, 14 Dec 2023 10:37:04 -0800 Subject: [PATCH] 14147 make skip empty default to True --- docs/configuration/miscellaneous.md | 2 +- netbox/netbox/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configuration/miscellaneous.md b/docs/configuration/miscellaneous.md index 300b1ba01..04390be8b 100644 --- a/docs/configuration/miscellaneous.md +++ b/docs/configuration/miscellaneous.md @@ -82,7 +82,7 @@ changes in the database indefinitely. ## CHANGELOG_SKIP_EMPTY_CHANGES -Default: False +Default: True Enables skipping the creation of logged changes on updates if there were no modifications to the object. diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index fd18f26c1..59e507d28 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -177,7 +177,7 @@ STORAGE_CONFIG = getattr(configuration, 'STORAGE_CONFIG', {}) TIME_FORMAT = getattr(configuration, 'TIME_FORMAT', 'g:i a') TIME_ZONE = getattr(configuration, 'TIME_ZONE', 'UTC') ENABLE_LOCALIZATION = getattr(configuration, 'ENABLE_LOCALIZATION', False) -CHANGELOG_SKIP_EMPTY_CHANGES = getattr(configuration, 'CHANGELOG_SKIP_EMPTY_CHANGES', False) +CHANGELOG_SKIP_EMPTY_CHANGES = getattr(configuration, 'CHANGELOG_SKIP_EMPTY_CHANGES', True) # Check for hard-coded dynamic config parameters for param in PARAMS: