django-cities icon indicating copy to clipboard operation
django-cities copied to clipboard

Query Question

Open sowinski opened this issue 7 years ago • 0 comments
trafficstars

Hi,

habe a problem to build a query. I think this kind of query should also be described in the example section of the read me file.

I want all cities starting with an "A" in Poland for example. This is how I do it right now: country = Country.objects.filter(tld='pl).first() City.objects.filter(name__istartswith="a", country=country) This works fine. But how do I get for example all Ukraine cities with their names in Russian language starting with the Russian letter: Г country = Country.objects.filter(tld='ua).first() City.objects.filter(name__istartswith="Г", country=country) This is not working, I need to tell the query somehow to change the language to Russian. How can I do this?

sowinski avatar Jun 15 '18 13:06 sowinski