2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00

refactor plugin urls into plugin dir

This commit is contained in:
Matthias
2021-11-18 12:50:22 +01:00
parent a95b298c62
commit 000adb357d
6 changed files with 34 additions and 27 deletions

View File

@ -2,6 +2,8 @@
from django.conf import settings
from django.conf.urls import url, include
from plugin.urls import PLUGIN_BASE
class GlobalSettingsMixin:
"""Mixin that enables global settings for the plugin"""
@ -77,7 +79,7 @@ class UrlsMixin:
"""
returns base url for this plugin
"""
return f'{settings.PLUGIN_URL}/{self.slug}/'
return f'{PLUGIN_BASE}/{self.slug}/'
@property
def internal_name(self):