mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
we do not really need this integration sample
This commit is contained in:
parent
06ae979472
commit
9436dad54e
@ -40,26 +40,3 @@ class SampleIntegrationPlugin(SettingsMixin, UrlsMixin, NavigationMixin, Integra
|
||||
NAVIGATION = [
|
||||
{'name': 'SampleIntegration', 'link': 'plugin:SampleIntegrationPlugin:hi'},
|
||||
]
|
||||
|
||||
|
||||
class OtherIntegrationPlugin(UrlsMixin, IntegrationPlugin):
|
||||
"""
|
||||
An basic integration plugin
|
||||
"""
|
||||
|
||||
PLUGIN_NAME = "OtherIntegrationPlugin"
|
||||
|
||||
# @cls_login_required()
|
||||
def view_test(self, request):
|
||||
return HttpResponse(f'Hi there {request.user.username} this works')
|
||||
|
||||
def setup_urls(self):
|
||||
he = [
|
||||
url(r'^he/', self.view_test, name='he'),
|
||||
url(r'^ha/', self.view_test, name='ha'),
|
||||
]
|
||||
|
||||
return [
|
||||
url(r'^hi/', self.view_test, name='hi'),
|
||||
url(r'^ho/', include(he), name='ho'),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user