def serversearch_js(search_id):
attributes = {
a.pk: {
'multi': a.multi,
'type': a.type,
}
for a in Attribute.objects.all()
}
return {
'attributes_json': json.dumps(attributes),
'filters_json': json.dumps(
[
f.__name__
for f in filter_classes
# TODO Don't check for "Deprecated"
if f != ExactMatch and not f.__doc__.startswith('Deprecated')
]
),
'search_id': search_id,
'STATIC_URL': settings.STATIC_URL
}
评论列表
文章目录