providers/proxy: fix provider requiring a certificate to be selected

This commit is contained in:
Jens Langhammer
2020-09-14 17:37:06 +02:00
parent 501683e3cb
commit ae6304c05e
4 changed files with 29 additions and 4 deletions

View File

@ -50,7 +50,7 @@ class ProxyProvider(OutpostModel, OAuth2Provider):
cookie_secret = models.TextField(default=get_cookie_secret)
certificate = models.ForeignKey(
CertificateKeyPair, on_delete=models.SET_NULL, null=True
CertificateKeyPair, on_delete=models.SET_NULL, null=True, blank=True,
)
def form(self) -> Type[ModelForm]: