mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
Link preflight check
This commit is contained in:
parent
3edabc810e
commit
063a0e5142
@ -86,7 +86,12 @@ class NavigationMixin:
|
||||
"""
|
||||
setup navigation links for this plugin
|
||||
"""
|
||||
return getattr(self, 'NAVIGATION', None)
|
||||
nav_links = getattr(self, 'NAVIGATION', None)
|
||||
if nav_links:
|
||||
for link in nav_links:
|
||||
if False in [a in link for a in ('link', 'name', )]:
|
||||
raise NotImplementedError('Wrong Link definition', link)
|
||||
return nav_links
|
||||
|
||||
@property
|
||||
def has_naviation(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user