jlaine / qdjango

QDjango, a Qt-based C++ web framework
GNU Lesser General Public License v2.1
268 stars 96 forks source link

Upgraded selectRelated to work like in the current Django version. #52

Closed pavleb closed 6 years ago

pavleb commented 8 years ago

One can list the foreign keys to be loaded thus limiting the DB traverse. In the current version the selectRelated loaded all the foreign keys recursively, which is quite demanding for large DB structures.

pavleb commented 8 years ago

I have added detailed example in the docs describing how the method works. Please let me know if you need anything extra.

pavleb commented 8 years ago

I hoped that the corrected .travis.yml file would fix the build problem. That is why I merged the current master in my branch. I didn't changed any of the code since the previous build. I was just adding extra explenation in the docs.