fixed doc

This commit is contained in:
Matthias 2021-07-01 07:07:40 +02:00
parent 4d86f33e23
commit 9b7a08f50f

View File

@ -39,7 +39,7 @@ class InvenTreeURLField(models.URLField):
class InvenTreeModelMoneyField(ModelMoneyField):
""" custom MoneyField for clean migrations while havoing dynamic currency settings """
""" custom MoneyField for clean migrations while using dynamic currency settings """
def __init__(self, **kwargs):
# remove currency information for a clean migration
kwargs['default_currency'] = ''
@ -54,7 +54,7 @@ class InvenTreeModelMoneyField(ModelMoneyField):
class InvenTreeMoneyField(MoneyField):
""" custom MoneyField for clean migrations while havoing dynamic currency settings """
""" custom MoneyField for clean migrations while using dynamic currency settings """
def __init__(self, *args, **kwargs):
# override initial values with the real info from database
kwargs['currency_choices'] = [(a, a) for a in settings.CURRENCIES]