mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
add new setting to activate string repr
This commit is contained in:
parent
d02ed6b9e0
commit
57604a6069
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue