From aea6200bfd891fd13189ccf9410853c9db246775 Mon Sep 17 00:00:00 2001 From: collerek Date: Tue, 2 Feb 2021 09:37:19 +0100 Subject: [PATCH] fix coverage --- ormar/models/metaclass.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/ormar/models/metaclass.py b/ormar/models/metaclass.py index cee13a9..ddb752e 100644 --- a/ormar/models/metaclass.py +++ b/ormar/models/metaclass.py @@ -361,8 +361,6 @@ def copy_and_replace_m2m_through_model( for name, field in new_meta.model_fields.items() if not issubclass(field, ForeignKeyField) } - if hasattr(new_meta, "column"): - del new_meta.columns _, columns = sqlalchemy_columns_from_model_fields( new_meta.model_fields, copy_through ) # type: ignore