From 81335ee1d51db879fbad0815bd6d6db92e394394 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 15 Nov 2021 02:05:57 +0100 Subject: [PATCH] clear url caches --- InvenTree/plugin/apps.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/InvenTree/plugin/apps.py b/InvenTree/plugin/apps.py index 40c021dc1e..d777d932c3 100644 --- a/InvenTree/plugin/apps.py +++ b/InvenTree/plugin/apps.py @@ -9,6 +9,7 @@ from django.apps import AppConfig, apps from django.conf import settings from django.db.utils import OperationalError, ProgrammingError from django.conf.urls import url, include +from django.urls import clear_url_caches from django.contrib import admin try: @@ -237,6 +238,7 @@ class PluginAppConfig(AppConfig): elif a.app_name == 'plugin': integ_urls = get_integration_urls() urlpatterns[index] = url(f'^{settings.PLUGIN_URL}/', include((integ_urls, 'plugin'))) + clear_url_caches() def _reload_apps(self, populate: bool = False): if populate: