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