#NEWLINE# @ cache_control ( max_age = ( ( 60 * 60 ) * 24 ) ) #NEWLINE# @ non_atomic_requests #NEWLINE# def persona_redirect( request , persona_id ) : #NEWLINE# #INDENT# if ( persona_id == 0 ) : #NEWLINE# #INDENT# return http . HttpResponseNotFound ( ) #NEWLINE# #UNINDENT# persona = get_object_or_404 ( Persona , persona_id = persona_id ) #NEWLINE# try : #NEWLINE# #INDENT# to = reverse ( 'addons.detail' , args = [ persona . addon . slug ] ) #NEWLINE# #UNINDENT# except Addon . DoesNotExist : #NEWLINE# #INDENT# return http . HttpResponseNotFound ( ) #NEWLINE# #UNINDENT# return http . HttpResponsePermanentRedirect ( to )