def delete(self, skip_autoupdate=False, *args, **kwargs): """ Customized method to delete an assignment. Ensures that a respective assignment projector element is disabled. """ Projector.remove_any(skip_autoupdate=skip_autoupdate, name='assignments/assignment', id=self.pk) return super().delete(skip_autoupdate=skip_autoupdate, *args, **kwargs) # type: ignore # TODO fix typing
def delete(self, skip_autoupdate=False, *args, **kwargs): """ Customized method to delete a motion. Ensures that a respective motion projector element is disabled. """ Projector.remove_any( skip_autoupdate=skip_autoupdate, name='motions/motion', id=self.pk) return super().delete(skip_autoupdate=skip_autoupdate, *args, **kwargs) # type: ignore
def delete(self, skip_autoupdate=False, *args, **kwargs): """ Customized method to delete a motion block. Ensures that a respective motion block projector element is disabled. """ Projector.remove_any(skip_autoupdate=skip_autoupdate, name='motions/motion-block', id=self.pk) return super().delete(skip_autoupdate=skip_autoupdate, *args, **kwargs) # type: ignore
def delete(self, skip_autoupdate=False, *args, **kwargs): """ Customized method to delete an agenda item. Ensures that a respective list of speakers projector element is disabled. """ Projector.remove_any(skip_autoupdate=skip_autoupdate, name='agenda/list-of-speakers', id=self.pk) return super().delete(skip_autoupdate=skip_autoupdate, *args, **kwargs) # type: ignore
def delete(self, skip_autoupdate=False, *args, **kwargs): """ Customized method to delete an agenda item. Ensures that a respective list of speakers projector element is disabled. """ Projector.remove_any( skip_autoupdate=skip_autoupdate, name='agenda/list-of-speakers', id=self.pk) return super().delete(skip_autoupdate=skip_autoupdate, *args, **kwargs) # type: ignore
def delete(self, skip_autoupdate=False, *args, **kwargs): """ Customized method to delete an assignment. Ensures that a respective assignment projector element is disabled. """ Projector.remove_any( skip_autoupdate=skip_autoupdate, name='assignments/assignment', id=self.pk) return super().delete(skip_autoupdate=skip_autoupdate, *args, **kwargs) # type: ignore # TODO fix typing
def check_projector_requirements(self): """ Helper method which returns True if the current request (on this view instance) is required for at least one active projector element. """ from openslides.core.models import Projector result = False if self.request.user.has_perm('core.can_see_projector'): for requirement in Projector.get_all_requirements(): if requirement.is_currently_required(view_instance=self): result = True break return result
def get_collection_string(self) -> str: return Projector.get_collection_string()