Hi all,
I'm trying to set up a plugin model where the model can be associated with many interfaces, and any interface can only be associated with one instance of the plugin model. If it were allowed, this would be easily done by adding a ForeignKey field to the Interface model pointing at my plugin's model - but plugins cannot extend the base models.
Is there a standard pattern for doing this in Netbox? It looks like using a ManyToManyField in my plugin's model with a Constraint on it ought to work, but it doesn't feel right to me.
Am I missing something really obvious? Or is the fact that I'm trying to do this a sign that I might be getting my model design wrong?