Added type to pop in tags

This commit is contained in:
dormantman 2020-01-20 16:20:32 +03:00
parent a994e7214b
commit 075ce887da

View File

@ -209,6 +209,7 @@ class FiltersTagCategoryViewSet(TagCategoryViewSet):
if len(tag_category): # we have Pop tag in our results
tag_category = tag_category[0]
tag_category['param_name'] = 'tags_id__in'
tag_category['type'] = 'pop'
result_list.append(tag_category)
result_list.sort(key=lambda x: self.index_name_to_order.get(x.get('index_name'), 0), reverse=True)
return Response(result_list)