diff --git a/CHANGELOG.md b/CHANGELOG.md index ad91ac8..f0341ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - --> +## [2.1.1] - 2024-08-20 +### Changed +- Fixed an issue where the management command `scrub_validation` could fail even though all models were skipped - Thanks @GitRon + ## [2.1.0] - 2024-08-20 ### Changed - Added support for `Django` version `5.1` - Thanks @GitRon diff --git a/django_scrubber/management/commands/scrub_validation.py b/django_scrubber/management/commands/scrub_validation.py index f06bbe8..dd6b849 100644 --- a/django_scrubber/management/commands/scrub_validation.py +++ b/django_scrubber/management/commands/scrub_validation.py @@ -31,7 +31,7 @@ def handle(self, *args, **options): print(f"- {field}") found_fields += 1 - if found_models > 0 or found_fields > 0: + if found_models > 0: print(f'{found_models} model(s) having {found_fields} unscrubbed field(s) detected.') sys.exit(1)