Is there a way to filter a django queryset based on string similarity (a la python difflib)?
- 阅读更多 关于 Is there a way to filter a django queryset based on string similarity (a la python difflib)?
问题 I have a need to match cold leads against a database of our clients. The leads come from a third party provider in bulk (thousands of records) and sales is asking us to (in their words) "filter out our clients" so they don't try to sell our service to a established client. Obviously, there are misspellings in the leads. Charles becomes Charlie, Joseph becomes Joe, etc. So I can't really just do a filter comparing lead_first_name to client_first_name, etc. I need to use some sort of string