I'd like to make a OneToMany-relationship between one of my models and the builtin Permission
model of django.contrib.auth.models
.
My plan is to create at least one new permission when my model is created and delete this/these permissions when the model is deleted.
When it comes to Many-to-one relations the documentation recommends using a ForeignKey (https://docs.djangoproject.com/en/1.11/topics/db/examples/many_to_one/). But if I get this right, I would need (theoretically) to add a ForeignKey to the Permission model.
Am I on the wrong way? What would be the best practice to implement this?