X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/2d538a50605add2666172861744229599487f1b2..c46844cb5a794566d15437b0c4a809e9230baecf:/src/wlxml/views.py?ds=sidebyside diff --git a/src/wlxml/views.py b/src/wlxml/views.py index 3375b0d9..8c03e058 100644 --- a/src/wlxml/views.py +++ b/src/wlxml/views.py @@ -166,7 +166,17 @@ class MetaTagsView(View): ) ) ) - fields.append(d) + if d['name'] == 'thema': + d_loc = d.copy() + d_time = d.copy() + d['filter'] = {'not': {'startswith': ['1', '3']}} + d_loc['filter'] = {'startswith': ['1']} + d_loc['name'] += ' (miejsca)' + d_time['filter'] = {'startswith': ['3']} + d_time['name'] += ' (czas)' + fields.extend([d, d_loc, d_time]) + else: + fields.append(d) return HttpResponse( 'let META_FIELDS = ' + json.dumps(fields),