add new setting to activate string repr

This commit is contained in:
fabianallendorf 2025-11-05 15:16:12 +01:00
parent d02ed6b9e0
commit 57604a6069

View file

@ -71,3 +71,8 @@ settings.AUDITLOG_LOGENTRY_MODEL = getattr(
settings.AUDITLOG_USE_BASE_MANAGER = getattr(
settings, "AUDITLOG_USE_BASE_MANAGER", False
)
# Use string representation of referenced object in foreign key changes instead of its primary key
settings.AUDITLOG_USE_STRING_REPRESENTATION_IN_FOREIGN_KEY_CHANGES = getattr(
settings, "AUDITLOG_USE_STRING_REPRESENTATION_IN_FOREIGN_KEY_CHANGES", False
)