mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-03-17 22:36:17 +00:00
add allow_invalid_cert field to application model and update related forms and config processing
This commit is contained in:
@@ -13,11 +13,12 @@ from app_gateway.models import (
|
||||
class ApplicationForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Application
|
||||
fields = ['name', 'display_name', 'upstream']
|
||||
fields = ['name', 'display_name', 'upstream', 'allow_invalid_cert']
|
||||
labels = {
|
||||
'name': _('Name'),
|
||||
'display_name': _('Display Name'),
|
||||
'upstream': _('Upstream'),
|
||||
'allow_invalid_cert': _('Allow invalid/self-signed certificate'),
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
@@ -33,6 +34,7 @@ class ApplicationForm(forms.ModelForm):
|
||||
),
|
||||
Div(
|
||||
Div('upstream', css_class='col-md-12'),
|
||||
Div('allow_invalid_cert', css_class='col-md-12'),
|
||||
css_class='row'
|
||||
),
|
||||
Div(
|
||||
|
||||
Reference in New Issue
Block a user