From d9ff5c69c8641eb21bad0224b427ba82539b2aad Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 2 Jan 2020 20:20:10 +0100 Subject: [PATCH] providers/app_gw: fix assignment of response_types --- passbook/providers/app_gw/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/passbook/providers/app_gw/forms.py b/passbook/providers/app_gw/forms.py index ecb2bd914..d806e9d9d 100644 --- a/passbook/providers/app_gw/forms.py +++ b/passbook/providers/app_gw/forms.py @@ -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 = ResponseType.objects.get_by_natural_key( + 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",