Skip to content

Commit

Permalink
fix: fix get_tracked_models for ckan 2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantsan committed Nov 25, 2024
1 parent 900cb95 commit 4f8c9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/event_audit/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def get_ignored_models() -> list[str]:

def get_tracked_models() -> list[str]:
"""A list of database models to track when logging events."""
return tk.config[CONF_TRACK_MODELS]
return tk.config.get(CONF_TRACK_MODELS, [])


def is_database_log_enabled() -> bool:
Expand Down

0 comments on commit 4f8c9f6

Please sign in to comment.