In this question was solved problem for reverse LIKE
operation in SQL, for example if field name is \"Peter Johnson\", we could find it by such query:
If you are on the latest version of Django (1.10 or later) and using Postgres the ORM can handle this. Check out the docs.
A trigram_similar
lookup will get you what you are looking for:
qs = MyModel.objects.filter(name__trigram_similar='Mr. Peter Johnson')
Don't forget to enable this lookup by enabling the pg_tgrm extension. You can do that with a django migration.
And you will need to add 'django.contrib.postgres'
to your INSTALLED_APPS
setting.