Possible incorrect FieldError error message


Not sure if this error message should be worded differently:

Unsupported lookup ‘stripwhitespace’ for CharField or join on the field not permitted, perhaps you meant stripwhitespace?

It’s when I’m using the query: myfield__stripwhitespace__in.

Looks like I can’t use in with stripwhitespace but feels like the error message shouldn’t show stripwhitespace twice like it does.

Is this worth logging it as a bug?

I do not see where “stripwhitespace” is a Django-provided lookup function. Is this a third-party module providing this?

No it’s a custom function. I didn’t realise. :man_facepalming: