mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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!
|
||||
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)
|
||||
rule.delete()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user