mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
ignore precaution for plugin programmers srewing up in coverage
This commit is contained in:
parent
e68cc25294
commit
1e4727d733
@ -317,7 +317,7 @@ def split_permission(app, perm):
|
||||
"""split permission string into permission and model"""
|
||||
permission_name, *model = perm.split('_')
|
||||
# handle models that have underscores
|
||||
if len(model) > 1:
|
||||
if len(model) > 1: # pragma: no cover
|
||||
app += '_' + '_'.join(model[:-1])
|
||||
perm = permission_name + '_' + model[-1:][0]
|
||||
model = model[-1:][0]
|
||||
|
Loading…
Reference in New Issue
Block a user