0001-don-t-generate-box-details-for-json-calls-25541.patch
auquotidien/modules/root.py | ||
---|---|---|
808 | 808 |
response.filter = {} |
809 | 809 | |
810 | 810 |
response.filter['auquotidien'] = True |
811 |
if not path or path[0] not in ('api', 'backoffice'):
|
|
811 |
if not path or (path[0] not in ('api', 'backoffice') and not get_request().is_json()):
|
|
812 | 812 |
# api & backoffice have no use for a side box |
813 | 813 |
response.filter['gauche'] = self.box_side(path) |
814 | 814 |
response.filter['keywords'] = template.get_current_theme().get('keywords') |
815 |
- |