#NEWLINE# def clean_token( self ) : #NEWLINE# #INDENT# token = token . cleaned_data [ 'token' ] #NEWLINE# if ( not self . device . verify_token ( token ) ) : #NEWLINE# #INDENT# raise forms . ValidationError ( self . error_messages [ 'invalid_token' ] ) #NEWLINE# #UNINDENT# return token