we do not really need this integration sample

This commit is contained in:
Matthias 2021-09-25 01:23:56 +02:00
parent 06ae979472
commit 9436dad54e
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -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'),
]