[Answer]-Django unsupported operand type for instancemethod and decimal

1👍

As the error tells you you’re trying to perform a computation with the model method, not the result of calling the method. It should be:

cimt = member.cimt()

Or called with whatever arguments you need.

You can access and manipulate methods by name just like anything else on an object; you need to use the parentheses to actually call it.

Leave a comment