Describe the bug
Assigning a variation of a OpenVPN client template while unassigning another one causes the resulting configuration to become bugged: the configuration variables of the certificates are not resolved.
Steps To Reproduce
Steps to reproduce the behavior:
- Create a VPN-client template using OpenVPN
- Create another VPN-client template using the same server, but with slightly different configurations
- Assign the template created in step 1, save
- Now unassign the template created in step 1 while at the same time assign the template created in step 2, save
Expected behavior
The resulting configuration should work normally.
Screenshots

System Informatioon:
- OS: Debian bookworm/sid
- Python Version: 3.10.12
- Django Version: 4.2
Describe the bug
Assigning a variation of a OpenVPN client template while unassigning another one causes the resulting configuration to become bugged: the configuration variables of the certificates are not resolved.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
The resulting configuration should work normally.
Screenshots
System Informatioon: