Exemplo n.º 1
0
 def make_mapping(self,
                  mapping: Dict[str, Any],
                  key_prefix: Optional[str] = None) -> QueryMapping:
     """Parse a mapping that applies (tabular) source data to the model."""
     return QueryMapping(self, mapping, key_prefix=key_prefix)
Exemplo n.º 2
0
 def make_mapping(self, mapping, key_prefix=None):
     """Parse a mapping that applies (tabular) source data to the model."""
     return QueryMapping(self, mapping, key_prefix=key_prefix)
Exemplo n.º 3
0
 def make_mapping(self, mapping, key_prefix=None):
     """Parse a mapping that applies (tabular) source data to the model."""
     mapping = QueryMapping(self, mapping, key_prefix=key_prefix)
     mapping.source = get_source(mapping)
     return mapping