previous one is not the right approach: using self.__class__.<> instead. thanks @omaciel