closeio / flask-common

Some commonly shared code for Flask, MongoEngine, and Python apps
26 stars 4 forks source link

Flexible fetch_related #3

Closed wojcikstefan closed 10 years ago

wojcikstefan commented 10 years ago

Allows objects of multiple types to be mixed and gracefully handles fields that don't exist on some of the objects.

thomasst commented 10 years ago

If it's done, feel free to add some tests and let me know :)

wojcikstefan commented 10 years ago

Yup, I'm working on some unit tests as we speak :)

wojcikstefan commented 10 years ago

@thomasst take a look at the unit tests and merge if it's fine.

thomasst commented 10 years ago

Should be fine from just reading it. Add the empty list test for fetch_related and make sure all Close.io tests pass before you merge.