Browse Source

[FIX] cope with no additional log values

pull/1556/head
Holger Brunn 10 years ago
committed by sebalix
parent
commit
63269a91cb
  1. 2
      auditlog/models/rule.py

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

Loading…
Cancel
Save