From d62ecb857302d2ffeabab72fe495c3e1a0962bbd Mon Sep 17 00:00:00 2001 From: sahama Date: Mon, 5 Aug 2024 11:51:09 +0330 Subject: [PATCH] filter applications --- apps/gooyal_oauth2/forms.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/gooyal_oauth2/forms.py b/apps/gooyal_oauth2/forms.py index 60df072..678583c 100644 --- a/apps/gooyal_oauth2/forms.py +++ b/apps/gooyal_oauth2/forms.py @@ -65,13 +65,16 @@ class ApplicationCreateForm(forms.ModelForm): readonly_fields = ['client_id', 'client_secret'] + class ApplicationUpdateForm(forms.ModelForm): class Meta: model = Application - fields = ['client_id', - 'client_secret', - # 'authorization_grant_type', - 'redirect_uris', - 'post_logout_redirect_uris'] + fields = [ + 'client_id', + 'client_secret', + # 'authorization_grant_type', + 'redirect_uris', + # 'post_logout_redirect_uris' + ] readonly_fields = ['name', 'client_id', 'client_secret']