def get_filename(self):
        if self.print_all_motions:
            return _("Motions")
        else:
            if self.get_object().identifier:
                suffix = self.get_object().identifier.replace(' ', '')
            else:
                suffix = self.get_object().title.replace(' ', '_')
                suffix = slugify(suffix)
            return '%s-%s' % (_("Motion"), suffix)
Return the filename for the PDF.
dataset/ETHPy150Open OpenSlides/OpenSlides/openslides/motions/views.py/MotionPDFView.get_filename