diff --git a/openslides/agenda/projector.py b/openslides/agenda/projector.py index 84b8813f6..3bc587109 100644 --- a/openslides/agenda/projector.py +++ b/openslides/agenda/projector.py @@ -65,7 +65,7 @@ class ListOfSpeakersSlide(ProjectorElement): output = super().get_collection_elements_required_for_this(collection_element, config_entry) # Full update if item changes because then we may have new # candidates and therefor need new users. - if collection_element == CollectionElement.from_values(Item.get_collection_string(), config_entry.get('id')): + if collection_element.collection_string == Item.get_collection_string() and collection_element.id == config_entry.get('id'): output.extend(self.get_requirements_as_collection_elements(config_entry)) return output diff --git a/openslides/assignments/projector.py b/openslides/assignments/projector.py index 313526d20..f26600cff 100644 --- a/openslides/assignments/projector.py +++ b/openslides/assignments/projector.py @@ -1,5 +1,4 @@ from ..core.exceptions import ProjectorException -from ..utils.collection import CollectionElement from ..utils.projector import ProjectorElement from .models import Assignment, AssignmentPoll @@ -51,7 +50,7 @@ class AssignmentSlide(ProjectorElement): output = super().get_collection_elements_required_for_this(collection_element, config_entry) # Full update if assignment changes because then we may have new # candidates and therefor need new users. - if collection_element == CollectionElement.from_values(Assignment.get_collection_string(), config_entry.get('id')): + if collection_element.collection_string == Assignment.get_collection_string() and collection_element.id == config_entry.get('id'): output.extend(self.get_requirements_as_collection_elements(config_entry)) return output diff --git a/openslides/motions/projector.py b/openslides/motions/projector.py index a39af954a..f3fed432d 100644 --- a/openslides/motions/projector.py +++ b/openslides/motions/projector.py @@ -1,5 +1,4 @@ from ..core.exceptions import ProjectorException -from ..utils.collection import CollectionElement from ..utils.projector import ProjectorElement from .models import Motion, MotionBlock, MotionChangeRecommendation, Workflow @@ -35,7 +34,7 @@ class MotionSlide(ProjectorElement): # # Add some logic here if we support live changing of workflows later. # - if collection_element == CollectionElement.from_values(Motion.get_collection_string(), config_entry.get('id')): + if collection_element.collection_string == Motion.get_collection_string() and collection_element.id == config_entry.get('id'): output.extend(self.get_requirements_as_collection_elements(config_entry)) return output