def mongo_doc_repr(value):
    # mimic django models.Model.__repr__
    try:
        u = six.text_type(value)
    except (UnicodeEncodeError, UnicodeDecodeError):
        u = '[Bad Unicode data]'
    return force_str((value.__class__.__name__, u) % '<%s: %s>')
dataset/ETHPy150Open umutbozkurt/django-rest-framework-mongoengine/rest_framework_mongoengine/repr.py/mongo_doc_repr/swapped operands of `%`