if not self.pk_field is boolean False. remove element from kwargs dictionary under the key 'to_field', substitute it for self.to_field if it exists,
self . to_field = kwargs . pop ( "to_field" , None )