The invention relates to a method for producing a device containing a needle that poses an injury risk, which is equipped with a protective mechanism. The method comprises the following steps, which may be carried out in any order: a) provision of at least one film, b) connection of the film to a protective device to form a protective mechanism, and c) fixing of the protective mechanism to the device, whereby at least part of the surface of the film can be fixed directly or indirectly to the device. The invention also relates to a protective mechanism for a device containing a needle that poses an injury risk, the device comprising at least one film, in addition to an assembly of protective mechanisms, in which the protective mechanisms are directly or indirectly connected.