2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 04:26:44 +00:00

ignore not testable condition

This commit is contained in:
Matthias 2022-02-13 17:42:50 +01:00
parent 67a4f75856
commit 898f99c931
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -32,7 +32,7 @@ class UsersConfig(AppConfig):
# First, delete any rule_set objects which have become outdated! # First, delete any rule_set objects which have become outdated!
for rule in RuleSet.objects.all(): for rule in RuleSet.objects.all():
if rule.name not in RuleSet.RULESET_NAMES: if rule.name not in RuleSet.RULESET_NAMES: # pragma: no cover # can not change ORM without the app beeing loaded
print("need to delete:", rule.name) print("need to delete:", rule.name)
rule.delete() rule.delete()