The new TrigramSimilarity feature of the django.contrib.postgres was great for a problem I had. I use it for a search bar to find hard to spell latin names. The problem is that
This already has an answer, but in Django 2.2 you can do this much easier:
class MyModel(models.Model):
name = models.TextField()
class Meta:
indexes = [GistIndex(name="gist_trgm_idx", fields=("name",), opclasses=("gist_trgm_ops",))]