2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-01 21:16:46 +00:00

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): 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): def __init__(self, **kwargs):
# remove currency information for a clean migration # remove currency information for a clean migration
kwargs['default_currency'] = '' kwargs['default_currency'] = ''
@ -54,7 +54,7 @@ class InvenTreeModelMoneyField(ModelMoneyField):
class InvenTreeMoneyField(MoneyField): 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): def __init__(self, *args, **kwargs):
# override initial values with the real info from database # override initial values with the real info from database
kwargs['currency_choices'] = [(a, a) for a in settings.CURRENCIES] kwargs['currency_choices'] = [(a, a) for a in settings.CURRENCIES]