recipes
recipes copied to clipboard
Create setting to sort case insensitive
Would need checked/implemented on StandardFilter and FuzzyFilter mixins
Entry.objects.order_by(Lower('headline').desc())
Is there any part of cooking and searching in coming recipes that should be case sensitive? The model for measurements is case sensitive, so I can have tbsp, TBSP, Tbsp, and TBsp measurements in my recipes, but they are all the same thing.
Some thought for food.
EDIT: Looking at this comment, once Tandoor moves from Django 3.2 to 3.3+, they can use a unique constraint for units that does the lower() function for uniqueing: https://stackoverflow.com/questions/67330053/uniqueconstraint-and-ignore-case-sensitive
i personally think there is no use for a case senstive search because people dont pay that much attention to naming stuff in recipes that it would be required to seach with case sensitivit, so everything can be insensitiv. Maybe this is already the case given that the search was reworked since the issue was opened.