It is required to make a filter on the similarity of this .
In Oscar, as far as I know, this is not the case (and most likely in the public domain too). I was a little concerned about this, and decided that it is worth taking the method of sorting products that uses Oscar (from A to Z, by rating, etc.) source -pastebin.com/jC0NRVCC, and slightly alter it to the attributes of goods. But I can't figure out how to inherit these attributes for an array.
SORT_BY_MAP = { #CustomsType:Here Are Properties TOP_RATED: '-rating', TITLE_A_TO_Z: 'title_s', TITLE_Z_TO_A: '-title_s', } We need to take the main Attributes class - then i.imgur.com/dwzlucW.png?1 what am I talking about (in order to base the search in the right way)? Or take all the products that returns a search query, and have to somehow work with them.
The problem is that Django and Oscar are new to me, and I don’t really understand all this complex structure.
Please help me with this problem, I have been suffering for several days already! Thank!