def _register_subclass(cls): TranslationSharingJobDerived._register_subclass(cls) job_type = getattr(cls, 'class_job_type', None) if job_type is not None: cls._translation_packaging_job_types.append(job_type)