{‘reference’: ‘تكاليف مقاول الباطن’, ‘total_group’: Decimal(‘92896.00’)}

this queryset

I need to put total_group in the variable to do mathematical operations on it

like sum

like this => supplier = total_group+1

the result = 92897

# How to put value and key in variable to do mathematical operations on it?

You need to convert the value to an int.

That is:

`supplier = int(total_group) + 1`