From 7fae4c5a0a19e2668741ecf7054a4f3551f3ed6f Mon Sep 17 00:00:00 2001 From: Nicolas JEUDY Date: Tue, 16 Jan 2024 10:19:01 +0100 Subject: [PATCH] [FIX] import from old setup --- galicea_openid_connect/models/client.py | 4 ++-- galicea_openid_connect/views/views.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/galicea_openid_connect/models/client.py b/galicea_openid_connect/models/client.py index 2c86714..8dcaf34 100644 --- a/galicea_openid_connect/models/client.py +++ b/galicea_openid_connect/models/client.py @@ -13,14 +13,14 @@ class Client(models.Model): client_id = fields.Char( string="Client ID", required=True, - readonly=True, + readonly=False, index=True, default=lambda _: random_tokens.lower_case(16), ) secret = fields.Char( string="Client secret", required=True, - readonly=True, + readonly=False, default=lambda _: random_tokens.alpha_numeric(32), groups="galicea_openid_connect.group_admin", ) diff --git a/galicea_openid_connect/views/views.xml b/galicea_openid_connect/views/views.xml index 9040e80..e9622eb 100644 --- a/galicea_openid_connect/views/views.xml +++ b/galicea_openid_connect/views/views.xml @@ -22,10 +22,10 @@ -