'Returns list of field names for given object'

def get_field_names(self):

    x = []
    for f in self._meta.fields:
        if (f.name not in settings.HARDTREE_OBJECT_BLACKLIST):
            x.append(f.name)
    for f in self._meta.many_to_many:
        if (f.name not in settings.HARDTREE_OBJECT_BLACKLIST):
            x.append(f.name)
    return x
