def enrich_docstring(obj, lines):
    """Adds pretty model field listing to class description."""
    fields = obj._meta._fields()
    for field in fields:
        # Decode and strip any html out of the field's help text
        help_text = strip_tags(force_unicode(field.help_text))

        # Decode and capitalize the verbose name, for use if there isn't
        # any help text
        verbose_name = force_unicode(field.verbose_name).capitalize()

        if help_text:
            # Add the model field to the end of the docstring as a param
            # using the help text as the description
            lines.append(u':param %s: %s' % (field.attname, help_text))
        else:
            # Add the model field to the end of the docstring as a param
            # using the verbose name as the description
            lines.append((field.attname, verbose_name) % u':param %s: %s')

        # Add the field's type to the docstring
        lines.append(u':type %s: %s' % (field.attname, type(field).__name__))
dataset/ETHPy150Open ipeirotis/Mturk-Tracker/doc/source/extensions/djmex.py/enrich_docstring/swapped operands of `%`