def get_fields(model):
    opts = model._meta
    if VERSION < (1, 8):
        return opts.get_all_field_names()
    else:
        return set(field.name for field in opts.get_fields())
Returns a set of fields associated to the model.
dataset/ETHPy150Open django-money/django-money/djmoney/_compat.py/get_fields