def from_subindex_(d_subindex): d_index = BaseModel.from_subindex('contact', d_subindex, [f.name for f in Contact.l_index]) return Contact.from_index_(d_index)
def from_subindex_(d_subindex): d_index = BaseModel.from_subindex('chantier', d_subindex, [f.name for f in Chantier.l_index]) return Chantier.from_index_(d_index)