Browse Source
[FIX] cope with no additional log values
pull/1040/head
Holger Brunn
10 years ago
committed by
Enric Tobella
No known key found for this signature in database
GPG Key ID: 1A2546A1B7BA2451
1 changed files with
1 additions and
1 deletions
-
auditlog/models/rule.py
|
@ -303,7 +303,7 @@ class auditlog_rule(models.Model): |
|
|
'method': method, |
|
|
'method': method, |
|
|
'user_id': uid, |
|
|
'user_id': uid, |
|
|
} |
|
|
} |
|
|
vals.update(additional_log_values) |
|
|
|
|
|
|
|
|
vals.update(additional_log_values or {}) |
|
|
log = log_model.create(vals) |
|
|
log = log_model.create(vals) |
|
|
diff = DictDiffer( |
|
|
diff = DictDiffer( |
|
|
new_values.get(res_id, EMPTY_DICT), |
|
|
new_values.get(res_id, EMPTY_DICT), |
|
|