check against none should be is not equal
This commit is contained in:
Родитель
9df5c1e5dd
Коммит
58cb44c160
|
@ -33,7 +33,7 @@ def get_finance_total(qs, addon, field=None, **kwargs):
|
|||
}
|
||||
if field:
|
||||
# Edge case, handle None values.
|
||||
if kwargs_copy[field] == None:
|
||||
if kwargs_copy[field] is None:
|
||||
kwargs_copy[field] = ''
|
||||
document[field] = kwargs_copy[field]
|
||||
|
||||
|
@ -75,7 +75,7 @@ def get_finance_total_inapp(qs, addon, inapp_name='', field=None, **kwargs):
|
|||
}
|
||||
if field:
|
||||
# Edge case, handle None values.
|
||||
if kwargs_copy[field] == None:
|
||||
if kwargs_copy[field] is None:
|
||||
kwargs_copy[field] = ''
|
||||
document[field] = kwargs_copy[field]
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче