#NEWLINE# def get( self , * args , **kwargs ) : #NEWLINE# #INDENT# if ( defaults . PYBB_NICE_URL and ( 'pk' in kwargs ) ) : #NEWLINE# #INDENT# return redirect ( self . topic , permanent = defaults . PYBB_NICE_URL_PERMANENT_REDIRECT ) #NEWLINE# #UNINDENT# return super ( TopicView , self ) . get ( * args , ** kwargs )