providers/proxy: fix formatting

This commit is contained in:
Jens Langhammer 2020-09-23 12:33:33 +02:00
parent 9f6f18f9bb
commit 9d93da3d45
2 changed files with 15 additions and 8 deletions

View File

@ -6,18 +6,24 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('passbook_providers_proxy', '0006_proxyprovider_skip_path_regex'),
("passbook_providers_proxy", "0006_proxyprovider_skip_path_regex"),
]
operations = [
migrations.AddField(
model_name='proxyprovider',
name='internal_host_ssl_validation',
field=models.BooleanField(default=True, help_text='Validate SSL Certificates of upstream servers'),
model_name="proxyprovider",
name="internal_host_ssl_validation",
field=models.BooleanField(
default=True, help_text="Validate SSL Certificates of upstream servers"
),
),
migrations.AlterField(
model_name='proxyprovider',
name='skip_path_regex',
field=models.TextField(blank=True, default='', help_text='Regular expressions for which authentication is not required. Each new line is interpreted as a new Regular Expression.'),
model_name="proxyprovider",
name="skip_path_regex",
field=models.TextField(
blank=True,
default="",
help_text="Regular expressions for which authentication is not required. Each new line is interpreted as a new Regular Expression.",
),
),
]

View File

@ -47,7 +47,8 @@ class ProxyProvider(OutpostModel, OAuth2Provider):
validators=[DomainlessURLValidator(schemes=("http", "https"))]
)
internal_host_ssl_validation = models.BooleanField(
default=True, help_text=_("Validate SSL Certificates of upstream servers"))
default=True, help_text=_("Validate SSL Certificates of upstream servers")
)
skip_path_regex = models.TextField(
default="",