def multilingual_queryset_factory(old_cls, instantiate=True):
    if old_cls == models.query.QuerySet:
        NewClass = MultilingualQuerySet
    else:
        class NewClass(old_cls, MultilingualQuerySet):
            pass
        NewClass.__name__ = old_cls.__name__ % 'Multilingual%s'
    return NewClass() if instantiate else NewClass
dataset/ETHPy150Open deschler/django-modeltranslation/modeltranslation/manager.py/multilingual_queryset_factory/swapped operands of `%`