#NEWLINE# def perform_create( self , serializer ) : #NEWLINE# #INDENT# 'Resets the application client secret, revokes all tokens' #NEWLINE# app = self . get_object ( ) #NEWLINE# app . reset_secret ( save = True ) #NEWLINE# app . reload ( ) #NEWLINE# serializer . validated_data [ 'client_secret' ] = app . client_secret