diff --git a/InvenTree/InvenTree/exchange.py b/InvenTree/InvenTree/exchange.py index 149ef6b794..c75a827cc7 100644 --- a/InvenTree/InvenTree/exchange.py +++ b/InvenTree/InvenTree/exchange.py @@ -1,4 +1,3 @@ -from django.conf import settings as inventree_settings from common.settings import currency_code_default, currency_codes from djmoney.contrib.exchange.backends.base import SimpleExchangeBackend diff --git a/InvenTree/InvenTree/tasks.py b/InvenTree/InvenTree/tasks.py index b01b362760..cab87ee64b 100644 --- a/InvenTree/InvenTree/tasks.py +++ b/InvenTree/InvenTree/tasks.py @@ -170,7 +170,6 @@ def update_exchange_rates(): try: from InvenTree.exchange import InvenTreeExchange from djmoney.contrib.exchange.models import ExchangeBackend, Rate - from django.conf import settings from common.settings import currency_code_default, currency_codes except AppRegistryNotReady: # Apps not yet loaded! diff --git a/InvenTree/InvenTree/tests.py b/InvenTree/InvenTree/tests.py index 44f907e21a..150662cb8e 100644 --- a/InvenTree/InvenTree/tests.py +++ b/InvenTree/InvenTree/tests.py @@ -5,8 +5,6 @@ from django.test import TestCase import django.core.exceptions as django_exceptions from django.core.exceptions import ValidationError -from django.conf import settings - from djmoney.money import Money from djmoney.contrib.exchange.models import Rate, convert_money from djmoney.contrib.exchange.exceptions import MissingRate diff --git a/InvenTree/InvenTree/views.py b/InvenTree/InvenTree/views.py index 9ce9e91ee9..4b559642ca 100644 --- a/InvenTree/InvenTree/views.py +++ b/InvenTree/InvenTree/views.py @@ -12,7 +12,6 @@ from django.utils.translation import gettext_lazy as _ from django.template.loader import render_to_string from django.http import HttpResponse, JsonResponse, HttpResponseRedirect from django.urls import reverse_lazy -from django.conf import settings from django.contrib.auth.mixins import PermissionRequiredMixin diff --git a/InvenTree/common/settings.py b/InvenTree/common/settings.py index de543c2620..e255ed0904 100644 --- a/InvenTree/common/settings.py +++ b/InvenTree/common/settings.py @@ -38,7 +38,6 @@ def currency_codes(): return [a for a in settings.CURRENCIES] - def stock_expiry_enabled(): """ Returns True if the stock expiry feature is enabled