mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
handle default in kwargs
This commit is contained in:
parent
dbb9fbd9fd
commit
7c6a58e936
@ -41,6 +41,11 @@ class InvenTreeModelMoneyField(ModelMoneyField):
|
||||
def __init__(self, **kwargs):
|
||||
default_currency=currency_code_default
|
||||
|
||||
# remove from kwargs if set
|
||||
if 'default_currency' in kwargs:
|
||||
default_currency = kwargs['default_currency']
|
||||
kwargs.pop('default_currency')
|
||||
|
||||
super().__init__(default_currency=default_currency, **kwargs)
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user