def fill_type_field(self, i, type_): type_field = BootstrapSelect(self, "var_type__{}".format(i)) return type_field.fill(type_)