recipes icon indicating copy to clipboard operation
recipes copied to clipboard

Create setting to sort case insensitive

Open smilerz opened this issue 4 years ago • 2 comments

Would need checked/implemented on StandardFilter and FuzzyFilter mixins

Entry.objects.order_by(Lower('headline').desc())

smilerz avatar Sep 23 '21 19:09 smilerz

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

Szeraax avatar Apr 04 '22 00:04 Szeraax

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.

vabene1111 avatar Apr 04 '22 16:04 vabene1111