Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query Question #197

Open
sowinski opened this issue Jun 15, 2018 · 0 comments
Open

Query Question #197

sowinski opened this issue Jun 15, 2018 · 0 comments

Comments

@sowinski
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant