mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-12 11:50:28 +00:00
handle default in kwargs
This commit is contained in:
1 parent
dbb9fbd9fd
commit
7c6a58e936
1 file changed
+5
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user