From 4f3adbcf4fc0ba6cf60ee8346379b62ff6fa340b Mon Sep 17 00:00:00 2001 From: Kevin Alberts Date: Mon, 16 Sep 2024 17:05:31 +0200 Subject: [PATCH] Refactor `is_rd` to `is_roomduty`, remove `require_room_duty` decorator in favor of directly using the `require_committee` decorator, make roomduty checks that use the RequireCommitteeMixin use the setting `ROOM_DUTY_ABBREVIATION`. Refactor `require_committee` decorator, `RequireCommitteeMixin` mixin and `RequireStrictCommitteeMixin` mixin to use the new Person.is_in_committee method. --- amelie/activities/templates/activity.html | 2 +- .../activity_enrollment_overview.html | 2 +- amelie/activities/views.py | 20 ++++++------- amelie/calendar/views.py | 3 +- amelie/members/ajax_views.py | 18 +++++------ amelie/members/query_views.py | 4 +-- amelie/members/templates/person_mandate.html | 4 +-- amelie/members/views.py | 30 +++++++++---------- amelie/settings/environ.py | 4 +-- amelie/settings/generic.py | 4 +-- amelie/settings/local.py.default | 2 -- amelie/tools/decorators.py | 12 +++----- amelie/tools/mixins.py | 15 ++++++---- amelie/views.py | 2 +- templates/frontpage.html | 2 +- 15 files changed, 61 insertions(+), 63 deletions(-) diff --git a/amelie/activities/templates/activity.html b/amelie/activities/templates/activity.html index 5375335..f3de261 100644 --- a/amelie/activities/templates/activity.html +++ b/amelie/activities/templates/activity.html @@ -147,7 +147,7 @@