def _fields(self, resource):
        """Get projection fields for given resource."""
        datasource = self.get_datasource(resource)
        keys = datasource[2].keys()
        return ','.join(keys) + ','.join([config.LAST_UPDATED, config.DATE_CREATED])
def _fields ( self , resource ) : datasource = self . get_datasource ( resource ) keys = datasource [ 2 ] . keys ( ) return ',' . join ( keys ) + ',' . join ( [ config . LAST_UPDATED , config . DATE_CREATED ] )
Get projection fields for given resource.