mirror of
https://github.com/inventree/inventree-docs.git
synced 2025-06-12 18:25:27 +00:00
@ -9,9 +9,9 @@ Use the class constant `URLS` for a array of URLs that should be added to InvenT
|
||||
The array has to contain valid URL patterns as defined in the [django documentation](https://docs.djangoproject.com/en/stable/topics/http/urls/).
|
||||
|
||||
``` python
|
||||
class MyUrlsPlugin(URLsMixin, IntegrationPluginBase):
|
||||
class MyUrlsPlugin(URLsMixin, InvenTreePlugin):
|
||||
|
||||
PLUGIN_NAME = "UrlsMixin"
|
||||
NAME = "UrlsMixin"
|
||||
|
||||
URLS = [
|
||||
url(r'increase/(?P<location>\d+)/(?P<pk>\d+)/', self.view_increase, name='increase-level'),
|
||||
|
Reference in New Issue
Block a user