librelist archives

« back to archive

Help with Json return using flask.ext.restful (marshal). Null values on One-To-Many tables.

Help with Json return using flask.ext.restful (marshal). Null values on One-To-Many tables.

From:
Edson Lopes
Date:
2015-01-07 @ 11:21
Hello, I have a bad Json return with null fields. in my case, I have a
master detail (one-to-many) to return, and I have this: http://goo.gl/d65p2r

Every return have an "id_colaborador", that is another table on my Mysql DB.

The is the code is on GitHub:
https://github.com/edsonlb/ccrm-ca/blob/master/run.py#L42

Thank you for the help!
Edson