[FIX] cope with no additional log values

pull/2466/head
Holger Brunn 2015-01-29 15:40:15 +01:00 committed by Stefan Rijnhart
parent 9e8cd4aa36
commit f1073f7ed1
1 changed files with 1 additions and 1 deletions

View File

@ -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),