I defined my custom permission through Meta Class
class Meta:
permissions = (
("my_permission", "My Permission"),
)
How can I trigger an action when a new permission is inserted?
E.g., if I add a new permission called my_permission_2, I want to call an API.
Can I do it overriding save method?
You could do it by overiride the save method. But way of going ahead would be to use Django Signals. Using them is quite easy.
For example,
There are variety of events available. Take a look here