0001-json-cell-check-json-content-type-when-determining-t.patch
combo/data/models.py | ||
---|---|---|
1610 | 1610 |
json_content = self._json_content |
1611 | 1611 |
if json_content is None: |
1612 | 1612 |
return 'combo/json-error-cell.html' |
1613 |
if json_content.get('data'): |
|
1613 |
if isinstance(json_content, dict) and json_content.get('data'):
|
|
1614 | 1614 |
if isinstance(json_content['data'], list): |
1615 | 1615 |
first_element = json_content['data'][0] |
1616 | 1616 |
if isinstance(first_element, dict): |
1617 |
- |