Kani999 / netbox-attachments

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

Multiple device types #47

Closed advoenkin closed 8 months ago

advoenkin commented 9 months ago

Hello dear,

Could you implement the ability, when adding a file, to select multiple types of devices to which this file belongs?

Thank you.

Kani999 commented 9 months ago

Hello, I don't think I'm able to do it. The model for attachments is designed to be as general as possible. So, I would need to figure out how to implement this feature across all the models in the core NetBox + plugins.

How would you envision this feature working?

advoenkin commented 8 months ago

Hello, I apologize for the long response.

I solved this feature using custom fields. I was create 3 custom fields with type "Selection" and using choice sets. Works perfect. Bu when i try using filters in http://url/plugins/netbox-attachments/netbox-attachments/ it's don't work. I always see full attachment list, but not filtered.

Kani999 commented 8 months ago

Okay, I'll take a look at it during next week.

Kani999 commented 8 months ago

@advoenkin - image

You mean when you are using custom fields and filtering them through form above, it does not work?

advoenkin commented 8 months ago

@Kani999 Yes.

Kani999 commented 8 months ago

@advoenkin Okay, I was able to reproduce the problem you described. I will take a look at where is the problem.

Kani999 commented 8 months ago

@advoenkin problem should be fixed with a new release.