From 35d4849a28c72b6042b85be7060110e0014af3da Mon Sep 17 00:00:00 2001 From: korenstin Date: Thu, 29 Aug 2024 00:43:33 +0200 Subject: [PATCH 1/2] fix Oauth --- note_kfet/settings/base.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/note_kfet/settings/base.py b/note_kfet/settings/base.py index 168f34bd..4e5fef05 100644 --- a/note_kfet/settings/base.py +++ b/note_kfet/settings/base.py @@ -264,11 +264,9 @@ OAUTH2_PROVIDER = { 'SCOPES_BACKEND_CLASS': 'permission.scopes.PermissionScopes', 'OAUTH2_VALIDATOR_CLASS': "permission.scopes.PermissionOAuth2Validator", 'REFRESH_TOKEN_EXPIRE_SECONDS': timedelta(days=14), + 'PKCE_REQUIRED': False, # PKCE (fix a breaking change of django-oauth-toolkit 2.0.0) } -# PKCE (fix a breaking change of django-oauth-toolkit 2.0.0) -PKCE_REQUIRED = False - # Take control on how widget templates are sourced # See https://docs.djangoproject.com/en/2.2/ref/forms/renderers/#templatessetting FORM_RENDERER = 'django.forms.renderers.TemplatesSetting' From 2cb9ac87355621677d233c112081b2c35f66fffc Mon Sep 17 00:00:00 2001 From: korenstin Date: Thu, 29 Aug 2024 10:17:13 +0200 Subject: [PATCH 2/2] =?UTF-8?q?replace=20"=E2=80=A6"=20->=20"..."=20(#130)?= =?UTF-8?q?=20and=20disable=20sorting=20on=20certain=20columns=20(#129)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/member/tables.py | 4 ++-- .../member/templates/member/club_members.html | 4 ++-- apps/note/tables.py | 5 ++++- apps/permission/models.py | 14 ++++++------- apps/treasury/tables.py | 6 ++++++ apps/wei/forms/surveys/wei2023.py | 10 +++++----- docs/apps/index.rst | 6 +++--- docs/apps/member.rst | 4 ++-- docs/apps/registration.rst | 2 +- locale/de/LC_MESSAGES/django.po | 4 ++-- locale/es/LC_MESSAGES/django.po | 4 ++-- locale/fr/LC_MESSAGES/django.po | 20 +++++++++---------- note_kfet/templates/base_search.html | 4 ++-- 13 files changed, 48 insertions(+), 39 deletions(-) diff --git a/apps/member/tables.py b/apps/member/tables.py index 46be76e7..836b3555 100644 --- a/apps/member/tables.py +++ b/apps/member/tables.py @@ -42,12 +42,12 @@ class UserTable(tables.Table): """ alias = tables.Column() - section = tables.Column(accessor='profile__section') + section = tables.Column(accessor='profile__section', orderable=False) # Override the column to let replace the URL email = tables.EmailColumn(linkify=lambda record: "mailto:{}".format(record.email)) - balance = tables.Column(accessor='note__balance', verbose_name=_("Balance")) + balance = tables.Column(accessor='note__balance', verbose_name=_("Balance"), orderable=False) def render_email(self, record, value): # Replace the email by a dash if the user can't see the profile detail diff --git a/apps/member/templates/member/club_members.html b/apps/member/templates/member/club_members.html index 3645050a..bbeb875e 100644 --- a/apps/member/templates/member/club_members.html +++ b/apps/member/templates/member/club_members.html @@ -11,7 +11,7 @@ SPDX-License-Identifier: GPL-3.0-or-later {{ title }}
- +