def get_redirect_on_fallback(language, site_id=None):
 language = get_language_object(language, site_id)
 return language.get('redirect_on_fallback', True)

def get_redirect_on_fallback ( language , site_id = None ) : language = get_language_object ( language , site_id ) return language . get ( 'redirect_on_fallback' , True )
returns if you should redirect on language fallback .