Projet

Général

Profil

0001-json-cell-check-json-content-type-when-determining-t.patch

Frédéric Péters, 15 juillet 2020 20:58

Télécharger (969 octets)

Voir les différences:

Subject: [PATCH] json cell: check json content type when determining template
 (#45150)

 combo/data/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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
-