diff --git a/routing_templates/forms.py b/routing_templates/forms.py index be0f1c3..90f9c8c 100644 --- a/routing_templates/forms.py +++ b/routing_templates/forms.py @@ -40,6 +40,7 @@ class RoutingTemplateForm(forms.ModelForm): self.helper.form_method = 'post' if self.instance.pk: + self.fields['wireguard_instance'].disabled = True delete_html = f"{delete_label}" else: delete_html = ''