Use getattr instead of dict access for fields. Dict doesn't work for properties here.