'Returns the preferred language for the actual user making the request.'

def _get_language_preference(self):

    language_preference = get_user_preference(self.real_user, LANGUAGE_KEY)
    if (not language_preference):
        language_preference = settings.LANGUAGE_CODE
    return language_preference
