@post_required
@user_view
def remove_locale(request, user):
 POST = request.POST
 if (('locale' in POST) and (POST['locale'] != settings.LANGUAGE_CODE)):
  user.remove_locale(POST['locale'])
  return http.HttpResponse()
 return http.HttpResponseBadRequest()

@ post_required @ user_view def remove_locale ( request , user ) : POST = request . POST if ( ( 'locale' in POST ) and ( POST [ 'locale' ] != settings . LANGUAGE_CODE ) ) : user . remove_locale ( POST [ 'locale' ] ) return http . HttpResponse ( ) return http . HttpResponseBadRequest ( )
remove a locale from the users translations .