def geoip_suggestion(request):
    locales = request.GET.getlist('locales[]')

    response = {'locales': {}}
    for locale in locales:
        # English and native names for the language
        response['locales'][locale] = LOCALES[locale]
        with uselocale(locale):
            # This is using our JS-style string formatting.
            response[locale] = {
                'suggestion': _('Would you like to view this page in '
                                '%(language)s instead?'),
                'confirm': _('Yes'),
                'cancel': _('No'),
            }

    return HttpResponse(json.dumps(response), content_type='application/json')
Deletes Registry's information about image membership
dataset/ETHPy150Open mozilla/kitsune/kitsune/sumo/views.py/geoip_suggestion--crossover with--dataset/ETHPy150Open rcbops/glance-buildpackage/glance/registry/client.py/RegistryClient.delete_member