I am trying to get a list of all existing model fields and properties for a given object. Is there a clean way to instrospect an object so that I can get a dict of fields an
You should use the dir() function on your instance. Skipping whatever starts with '__' and than use getattr to get the value from your instance.
properties = [prop for prop in dir(SomeClass) if not prop.startswith("__")] obj = {} for prop in properties: obj[prop] = getattr(myinstance, prop)