@csrf_exempt
def get_regions_places_list(request):
    if (request.method == 'POST'):
        user_name = request.POST.get('user_name', None)
        user = get_user(user_name)
        region_place_dict = user.get_region_place_dict()
        return JsonResponse(region_place_dict, safe=False)
    else:
        empty = {}
        return JsonResponse(empty)
@csrf_exempt
def get_regions_places_list(request):
    if (request.method == 'POST'):
        user_name = request.POST.get('user_name', None)
        user = get_user(user_name)
        region_place_dict = user.get_region_place_dict()
        return JsonResponse(region_place_dict, safe=False)
    else:
        empty = {}
        return JsonResponse(empty)