style fixes

This commit is contained in:
Matthias 2021-07-01 10:45:33 +02:00
parent 951e8910ba
commit 14c904c0c5
5 changed files with 0 additions and 6 deletions

View File

@ -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

View File

@ -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!

View File

@ -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

View File

@ -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

View File

@ -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