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

How do i get all regions from a country or cities from a region? I want to use this for APIs. I want to select a country then hit an API and get all regions of the country selected. Hope you get the idea

Open Hardeepsingh980 opened this issue 4 years ago • 1 comments

How do i get all regions from a country or cities from a region? I want to use this for APIs. I want to select a country then hit an API and get all regions of the country selected. Hope you get the idea

Hardeepsingh980 avatar Apr 14 '20 09:04 Hardeepsingh980

I think you could add a get_queryset implementation in RegionModelViewSet in the same fashion CityModelViewSet does, except filter on region id.

jpic avatar Apr 14 '20 10:04 jpic