From 983255a05e8f39b1be598ed1f954a4e4c507602b Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 1 Jul 2021 10:37:16 +0200 Subject: [PATCH] naming refactor --- InvenTree/InvenTree/fields.py | 2 +- InvenTree/common/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/InvenTree/fields.py b/InvenTree/InvenTree/fields.py index 6fd0637045..8d9ab77463 100644 --- a/InvenTree/InvenTree/fields.py +++ b/InvenTree/InvenTree/fields.py @@ -41,7 +41,7 @@ class InvenTreeURLField(models.URLField): def money_kwargs(): """ returns the database settings for MoneyFields """ kwargs = {} - kwargs['currency_choices'] = common.settings.currency_codes() + kwargs['currency_choices'] = common.settings.currency_code_mappings() kwargs['default_currency'] = common.settings.currency_code_default return kwargs diff --git a/InvenTree/common/settings.py b/InvenTree/common/settings.py index 9b107e9282..4d3b0c7940 100644 --- a/InvenTree/common/settings.py +++ b/InvenTree/common/settings.py @@ -24,7 +24,7 @@ def currency_code_default(): return code -def currency_codes(): +def currency_code_mappings(): """ Returns the current currency choices """