def _reset_values(self, instance):
        """Reset all associated values and clean up dictionary items"""
        self.value = None
        self.reference.value = None
        instance.__dict__.pop(self.field_name, None)
        instance.__dict__.pop(self.reference.field_name, None)
        self.reference.delete_cached_value(instance)
def _reset_values ( self , instance ) : self . value = None self . reference . value = None instance . __dict__ . pop ( self . field_name , None ) instance . __dict__ . pop ( self . reference . field_name , None ) self . reference . delete_cached_value ( instance )
Reset all associated values and clean up dictionary items