I need to fetch states list based on country id. The following code is working
states_query = States.objects.all() states_result = StatesSerializer(states_q