I have problem. I have model like this:
class Teams(models.Model):
Name = models.CharField(max_length=200)
Short_name = models.CharField(max_length=200, default = "-")
When I search team by short name, like "Har":
models.Teams.objects.filter(SHort_name = "Har")
I get results with "HAR" and "Har". Even if I try like this:
models.Teams.objects.filter(SHort_name__exact = "Har"):
I get same results ("HAR" and Har") The Short_name column is in utf8mb4_general_ci format, so it should be ok and database connection has this options:
'OPTIONS': {'charset': 'utf8mb4', 'use_unicode': True},
I don't know what is wrong or how to get exact one result.