diff --git a/CHANGELOG.md b/CHANGELOG.md index c71a0a49f..ce0f18bb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic - cli: `update` and `uninstall` commands no longer require a valid config. - cli: Fixed a regression in `new` command leading to crash with `TypeError`. - config: Fixed `jobs` section deserialization. +- database: Ignore abstract models during module validation. ## [6.4.0rc1] - 2022-12-09 diff --git a/src/dipdup/utils/database.py b/src/dipdup/utils/database.py index b7d3b1f41..4848b1caf 100644 --- a/src/dipdup/utils/database.py +++ b/src/dipdup/utils/database.py @@ -114,6 +114,8 @@ def iter_models(package: Optional[str]) -> Iterator[tuple[str, Type[TortoiseMode attr_value = getattr(module, attr) if is_model_class(attr_value): + if getattr(getattr(attr_value, 'Meta', None), 'abstract', False): + continue yield app, attr_value