openwisp-controller
openwisp-controller copied to clipboard
[bug] VpnClient deletion does not respect `auto_cert` flag
Removing a VPN Client template from a device will delete the related VpnClient object. This in-turn deletes related Cert objects due to on_delete=models.CASCADE.
Instead of using database cascading, we can add a post_delete handler that only deletes related certificates if auto_cert field is set to True.
I would like to work on this.
Hi @yashikajotwani12! This is an advance issue that will require some discussion before implementing a solution. Consider taking up another issue.
Thanks!
Hi @yashikajotwani12! This is an advance issue that will require some discussion before implementing a solution. Consider taking up another issue.
Thanks!
Okay, sure! I will look for another issue. Thanks