I have the following model and instance:
class Bashable(models.Model):
name = models.CharField(max_length=100)
>>> foo = Bashable.objects.create(name=u"piñata")
Now I want to be able to search for objects, but using ascii characters rather than unicode, something like this:
>>> Bashable.objects.filter(name__lookslike="pinata")
Is there a way in Django to do this sort of approximate string matching, using ascii stand-ins for the unicode characters in the database?
Here is a related question, but for Apple's Core Data.