mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 21:16:46 +00:00
fixed doc
This commit is contained in:
parent
4d86f33e23
commit
9b7a08f50f
@ -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]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user