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:
parent
67a4f75856
commit
898f99c931
@ -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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user