mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 20:45:44 +00:00
use namespaces for urls
This commit is contained in:
@ -64,7 +64,7 @@ class UrlsMixin:
|
||||
retruns the urlpatterns for this plugin
|
||||
"""
|
||||
if self.has_urls:
|
||||
return url(f'^{self.plugin_name()}/', include(self.urls), name=self.plugin_name())
|
||||
return url(f'^{self.plugin_name()}/', include((self.urls, self.plugin_name())), name=self.plugin_name())
|
||||
return None
|
||||
|
||||
@property
|
||||
|
@ -35,7 +35,7 @@ class SampleIntegrationPlugin(SettingsMixin, UrlsMixin, NavigationMixin, Integra
|
||||
}
|
||||
|
||||
NAVIGATION= [
|
||||
{'name': 'SampleIntegration', 'link': 'SampleIntegrationPlugin:hi'},
|
||||
{'name': 'SampleIntegration', 'link': 'plugin:SampleIntegrationPlugin:hi'},
|
||||
]
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user