the present invention relates to a device for fastening an auxiliary part , in particular a targeting unit or the like , to a weapon , which has at least one ferromagnetic part , the device comprising a base plate , to which the auxiliary part may be fastened , and the device being fixed on the weapon by at least one magnet .