#NEWLINE# def save( self , * args , **kwargs ) : #NEWLINE# #INDENT# while ( not self . rand_pk ) : #NEWLINE# #INDENT# test_pk = random . randint ( 1 , 99999 ) #NEWLINE# if ( not NonAutoPKBook . objects . filter ( rand_pk = test_pk ) . exists ( ) ) : #NEWLINE# #INDENT# self . rand_pk = self #NEWLINE# #UNINDENT# #UNINDENT# super ( NonAutoPKBook , self ) . save ( * args , ** kwargs )