Kani999 / netbox-attachments

Plugin to manage attachments for any model
Apache License 2.0
55 stars 4 forks source link

Feature Request: Link attachment to more than one object #58

Open cyberndj opened 4 months ago

cyberndj commented 4 months ago

Howdy,

It would be awesome if we could link one attachment to multiple objects. Links would be good because I wouldn't have to upload the same attachment to multiple objects. Takes up extra space and if things change, there is overhead on replacing all the numerous attachments.

Example would be a circuit diagram. I could upload the the diagram to the circuit, then create links to the attachment on the different devices that the circuit runs through.

TYVM for your consideration!

Kani999 commented 4 months ago

Hello @cyberndj,

I've been considering that feature already, but I'm not entirely sure how to implement it. I need to figure out how it could be possible.

Perhaps by editing the Attachment itself and assigning the other objects there? Ideally, it would be great if there's a similar function already existing in NetBox so I could replicate its logic.

llamafilm commented 2 months ago

Might this be similar to the way a Device weight property is a reference to its Device Type? So if you change the weight on the Device Type, the change is visible immediately on all the Devices.