Skip to content

Commit

Permalink
Safeguard collection of user details from thread_local storage. Bump …
Browse files Browse the repository at this point in the history
…version to 0.1.7.
  • Loading branch information
JivanAmara committed Jul 17, 2017
1 parent 6ae29f0 commit 6812562
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion audit_logging/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def log_event(instance, event=None):
# audit_event.username = d['resource']['username']
# audit_event.save()
from audit_logging.utils import log_event
user_details = audit_logging_thread_local.user_details
user_details = getattr(audit_logging_thread_local, 'user_details', {})
logger.debug('Got user_details from audit_logging_thread_local: {} ')
resource = d.get('resource')
resource_type = resource.get('type', 'unknown') if resource else 'unknown'
Expand Down
2 changes: 1 addition & 1 deletion audit_logging/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.6
0.1.7

0 comments on commit 6812562

Please sign in to comment.