def waiting(self):
        if self.sem.balance < 0:
            return -self.sem.balance
        else:
            return 0
Add the method getdict() to the request object.
dataset/ETHPy150Open veegee/guv/guv/greenpool.py/GreenPool.waiting--crossover with--dataset/ETHPy150Open klipstein/dojango/dojango/decorators.py/add_request_getdict