See this older Question
I was wondering if there are any new features available (preferably native Django) that could find DISTINCT entries in my Item
Model with a certain tolerance.
A simple example; I have these 5 Item-names:
- Item1 Linen Shirt
- Item2 Linen Shirt
- ItemB Linen Shirt1
- Item Linen Skirt
- ItemC Linen Skirt2
I would do something like:
item_set = Item.objects.distinct_special(name, tolerance = 95)
.. where the first value would be the field to search and the second value the tolerance as a percentage.