Fix bug when report has no params dict
This commit is contained in:
parent
60222c4977
commit
6f60387f30
|
@ -281,7 +281,7 @@ class ReportOutputView(ExportMasterView):
|
|||
|
||||
report = kwargs['instance']
|
||||
params_data = []
|
||||
for name, value in report.params.items():
|
||||
for name, value in (report.params or {}).items():
|
||||
params_data.append({
|
||||
'key': name,
|
||||
'value': value,
|
||||
|
|
Loading…
Reference in a new issue