Remove else clause that was never hit.
This commit is contained in:
@ -76,10 +76,8 @@ class ModelTableProxy:
|
|||||||
model_dict[field] = targets
|
model_dict[field] = targets
|
||||||
else:
|
else:
|
||||||
model_dict.pop(field)
|
model_dict.pop(field)
|
||||||
elif field_value: # nested dict
|
else: # nested dict
|
||||||
model_dict[field] = field_value.get(target_pkname)
|
model_dict[field] = field_value.get(target_pkname)
|
||||||
else:
|
|
||||||
model_dict.pop(field, None)
|
|
||||||
return model_dict
|
return model_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -237,7 +235,9 @@ class ModelTableProxy:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _populate_pk_column(
|
def _populate_pk_column(
|
||||||
model: Type["Model"], columns: List[str], use_alias: bool = False,
|
model: Type["Model"],
|
||||||
|
columns: List[str],
|
||||||
|
use_alias: bool = False,
|
||||||
) -> List[str]:
|
) -> List[str]:
|
||||||
pk_alias = (
|
pk_alias = (
|
||||||
model.get_column_alias(model.Meta.pkname)
|
model.get_column_alias(model.Meta.pkname)
|
||||||
|
|||||||
Reference in New Issue
Block a user