From f754bf04b58fa36b96a54a831eadcf0457a18868 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Thu, 29 Jan 2015 15:40:15 +0100 Subject: [PATCH] [FIX] cope with no additional log values --- auditlog/models/rule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auditlog/models/rule.py b/auditlog/models/rule.py index cec0e49b9..38a635ba1 100644 --- a/auditlog/models/rule.py +++ b/auditlog/models/rule.py @@ -303,7 +303,7 @@ class auditlog_rule(models.Model): 'method': method, 'user_id': uid, } - vals.update(additional_log_values) + vals.update(additional_log_values or {}) log = log_model.create(vals) diff = DictDiffer( new_values.get(res_id, EMPTY_DICT),