Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optionally use select_related to pull related fields for old #415

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
optionally use select_related to pull related fields
dgravitate committed Aug 15, 2022

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
commit 9adb97c2bd3be20bd26093ef7b0609491eed5161
5 changes: 5 additions & 0 deletions auditlog/conf.py
Original file line number Diff line number Diff line change
@@ -15,3 +15,8 @@
settings.AUDITLOG_INCLUDE_TRACKING_MODELS = getattr(
settings, "AUDITLOG_INCLUDE_TRACKING_MODELS", ()
)

# Do select_related on related fields to eliminate unnecessary queries
settings.AUDITLOG_SELECT_RELATED_FIELDS = getattr(
settings, "AUDITLOG_SELECT_RELATED_FIELDS", False
)