From 7f261e1a91c1acbf017658f320dbe15f5de4e9a9 Mon Sep 17 00:00:00 2001 From: magicfelix <felix@felix-zauberer.de> Date: Mon, 24 Mar 2025 11:06:37 +0100 Subject: [PATCH] Adjust to RegistryObject classvar name change --- aleksis/apps/alsijil/checks.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/aleksis/apps/alsijil/checks.py b/aleksis/apps/alsijil/checks.py index a440f52da..4e9128ca5 100644 --- a/aleksis/apps/alsijil/checks.py +++ b/aleksis/apps/alsijil/checks.py @@ -40,8 +40,8 @@ class NoParticipationStatusesPersonalNotesInCancelledLessonsDataCheck(DataCheck) ) problem_name = _("The participation status or personal note is related to a cancelled lesson.") solve_options = { - DeleteRelatedObjectSolveOption.name: DeleteRelatedObjectSolveOption, - IgnoreSolveOption.name: IgnoreSolveOption, + DeleteRelatedObjectSolveOption._class_name: DeleteRelatedObjectSolveOption, + IgnoreSolveOption._class_name: IgnoreSolveOption, } @classmethod @@ -69,9 +69,9 @@ class NoGroupsOfPersonsSetInParticipationStatusesDataCheck(DataCheck): verbose_name = _("Ensure that 'groups_of_person' is set for every participation status") problem_name = _("The participation status has no group in 'groups_of_person'.") solve_options = { - SetGroupsWithCurrentGroupsSolveOption.name: SetGroupsWithCurrentGroupsSolveOption, - DeleteRelatedObjectSolveOption.name: DeleteRelatedObjectSolveOption, - IgnoreSolveOption.name: IgnoreSolveOption, + SetGroupsWithCurrentGroupsSolveOption._class_name: SetGroupsWithCurrentGroupsSolveOption, + DeleteRelatedObjectSolveOption._class_name: DeleteRelatedObjectSolveOption, + IgnoreSolveOption._class_name: IgnoreSolveOption, } @classmethod @@ -92,8 +92,8 @@ class DocumentationOnHolidaysDataCheck(DataCheck): verbose_name = _("Ensure that there are no documentations on holidays") problem_name = _("The documentation is on holidays.") solve_options = { - DeleteRelatedObjectSolveOption.name: DeleteRelatedObjectSolveOption, - IgnoreSolveOption.name: IgnoreSolveOption, + DeleteRelatedObjectSolveOption._class_name: DeleteRelatedObjectSolveOption, + IgnoreSolveOption._class_name: IgnoreSolveOption, } @classmethod @@ -126,8 +126,8 @@ class ParticipationStatusPersonalNoteOnHolidaysDataCheck(DataCheck): ) problem_name = _("The participation status or personal note is on holidays.") solve_options = { - DeleteRelatedObjectSolveOption.name: DeleteRelatedObjectSolveOption, - IgnoreSolveOption.name: IgnoreSolveOption, + DeleteRelatedObjectSolveOption._class_name: DeleteRelatedObjectSolveOption, + IgnoreSolveOption._class_name: IgnoreSolveOption, } @classmethod -- GitLab