milesrichardson / ParsePy

A relatively up-to-date fork of ParsePy, the Python wrapper for the Parse.com API. Originally maintained by @dgrtwo
MIT License
515 stars 184 forks source link

Added automatic conversion of array of pointers to parse object #121

Closed flplv closed 9 years ago

flplv commented 9 years ago

Before this patch, an Array of Pointers in the Parse.com database would be converted to an list of dicts in the Python object. Now it will be converted to a list of Parse Objects.

It also works fine with select_related: when iterating over the list, a GET will be issued for each item, unless select_related was used, in the last scenario all objects within the Array will be received on the single query.

This is the same behaviour observed on the official Parse API for the other languages.