Smart Filter for items Django?

Hi all.
Is it possible using the standard Django ORM (+js on the client) to implement dependent filters?
The user selects a category, only show available for the categories color, dimensions (in the filter).
Further, filter size - display only the available colors. And so on. (as the filter in Yandex Market).
Thank you
June 5th 19 at 21:18
1 answer
June 5th 19 at 21:20
You can see here
it is not clear how this applies to filters. I have a model that contains color, size, discount, and so on - as a string value.
The problem is that every time you want to show only the available (after the previous) values of the filters.
Now I do this: collect all the values, and using the __in filter. We have filtered out the goods.
But, it turns out that you need to save the previous QuerySet in order to allow the user to choose another value (for example, after 2 stages we have available 5 colours).
It seems to me that here there is a facet search? or you can do a standard django orm + js on the client? - reynold_Hirt commented on June 5th 19 at 21:23

Find more questions by tags Django