def _document_django_model(cls):
    fields = cls._meta.fields
    doc = cls.__doc__

    if not doc.endswith('\n\n'):
        doc = doc + '\n\n'

    for f in fields:
        doc = doc + '    :arg {0}:\n'.format(f.name)

    cls.__doc__ = doc
    return cls
Adds meta fields to the docstring for better autodoccing
dataset/ETHPy150Open mozilla/django-badger/badger/models.py/_document_django_model