hasadna / knesset-data-python

python module that provides api to access Israeli Parliament (Knesset) data
https://github.com/hasadna/knesset-data
1 stars 16 forks source link

dataservice should support related table field #14

Open davi17g opened 7 years ago

davi17g commented 7 years ago

@OriHoch:

maybe it's worth to create a new class for this type of fields something like: ("committee", KnessetdataServiceRelatedField("CommitteeID", dataservice_class=Committee)) which will handle it automatically but need to make sure by default it doesn't fetch the related object - only when user requests it so I'm not sure what's the best way to implement it..

davi17g commented 7 years ago

see related PR: #8