2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00
This commit is contained in:
Matthias
2022-05-11 23:21:42 +02:00
parent 912d0625f0
commit f8e51c0873
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ Plugin model definitions
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from logging import warning
import warnings
from django.utils.translation import gettext_lazy as _
from django.db import models
@ -100,7 +100,7 @@ class PluginConfig(models.Model):
if (self.active is False and self.__org_active is True) or \
(self.active is True and self.__org_active is False):
if settings.PLUGIN_TESTING:
warning('A reload was triggered')
warnings.warn('A reload was triggered')
registry.reload_plugins()
return ret