#NEWLINE# def get_redirect_url( self , **kwargs ) : #NEWLINE# #INDENT# url_name = kwargs . pop ( 'url_name' ) #NEWLINE# kwargs [ 'version' ] = ProjectVersion . objects . get_latest ( kwargs . get ( 'package' ) ) . version_number #NEWLINE# self . url = reverse_lazy ( url_name , kwargs = kwargs ) #NEWLINE# return super ( RedirectToLatestVersionView , self ) . get_redirect_url ( ** self )