From 9bc6518d95da52051f2520da2db90968c686f4ee Mon Sep 17 00:00:00 2001 From: imperosol Date: Mon, 26 Oct 2026 13:18:54 +0100 Subject: [PATCH 1/2] fix: wrong style for some elements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - mauvais background-color sur le formulaire de login - rajout d'une margin qui avait disparu sur
- enlèvement du border sur
--- core/static/core/forms.scss | 1 + core/static/core/style.scss | 6 ++++++ core/static/user/login.scss | 1 - 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/core/static/core/forms.scss b/core/static/core/forms.scss index 718a2f84..3283a352 100644 --- a/core/static/core/forms.scss +++ b/core/static/core/forms.scss @@ -160,6 +160,7 @@ form { fieldset { margin-bottom: 1rem; + border: 0; } .row > label { diff --git a/core/static/core/style.scss b/core/static/core/style.scss index 3550b515..80ee165f 100644 --- a/core/static/core/style.scss +++ b/core/static/core/style.scss @@ -118,6 +118,12 @@ body { display: none !important; } +hr { + display: block; + margin: .5em auto; + color: gray; +} + /*--------------------------------HEADER-------------------------------*/ #info_boxes { diff --git a/core/static/user/login.scss b/core/static/user/login.scss index 97814e12..45afd269 100644 --- a/core/static/user/login.scss +++ b/core/static/user/login.scss @@ -21,7 +21,6 @@ body { flex-direction: column; padding: 10px; box-shadow: none; - background-color: white; margin: 0; .alert { From c5015f4448388c2745b935a36f0378874e7b0fdc Mon Sep 17 00:00:00 2001 From: imperosol Date: Mon, 26 Oct 2026 13:24:16 +0100 Subject: [PATCH 2/2] fix: add missing permission in populate --- core/management/commands/populate.py | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/core/management/commands/populate.py b/core/management/commands/populate.py index de803d66..d3c880c7 100644 --- a/core/management/commands/populate.py +++ b/core/management/commands/populate.py @@ -864,7 +864,11 @@ class Command(BaseCommand): subscribers = Group.objects.create(name="Cotisants") subscribers.permissions.add( - *list(perms.filter(codename__in=["add_news", "add_uecomment"])) + *list( + perms.filter( + codename__in=["add_news", "add_uecomment", "add_self_timetable"] + ) + ) ) old_subscribers = Group.objects.create(name="Anciens cotisants") old_subscribers.permissions.add( @@ -893,18 +897,16 @@ class Command(BaseCommand): accounting_admin.permissions.add( *list( perms.filter( - Q( - codename__in=[ - "view_customer", - "view_product", - "change_product", - "add_product", - "view_producttype", - "change_producttype", - "add_producttype", - "delete_selling", - ] - ) + codename__in=[ + "view_customer", + "view_product", + "change_product", + "add_product", + "view_producttype", + "change_producttype", + "add_producttype", + "delete_selling", + ] ).values_list("pk", flat=True) ) )