providers/app_gw: fix formatting

This commit is contained in:
Jens Langhammer 2020-01-02 20:22:36 +01:00
parent d9ff5c69c8
commit 684e4ffdcf
1 changed files with 3 additions and 3 deletions

View File

@ -16,9 +16,9 @@ class ApplicationGatewayProviderForm(forms.ModelForm):
client_id=generate_client_id(), client_secret=generate_client_secret()
)
self.instance.client.name = self.instance.name
self.instance.client.response_types.set([ResponseType.objects.get_by_natural_key(
"code"
)])
self.instance.client.response_types.set(
[ResponseType.objects.get_by_natural_key("code")]
)
self.instance.client.redirect_uris = [
f"http://{self.instance.external_host}/oauth2/callback",
f"https://{self.instance.external_host}/oauth2/callback",