How can I get only the boroughs of a city without the districts? #207
Open
Description
Hi,
is it possible to get only the boroughs of a city?
Example:
berlin = City.objects.filter(name="Berlin")[0]
len(District.objects.filter(city=berlin))
This should be 12 but gives me 205 because it includes boroughs and districts.
https://en.wikipedia.org/wiki/Boroughs_and_neighborhoods_of_Berlin
Thank you :)
Metadata
Assignees
Labels
No labels