(self, response)
``response`` can be a Requests response instance, or True if the
        payload did not result in an API call.
``response`` can be a Requests response instance, or True if the
        payload did not result in an API call.
response can be a Requests response instance or True if the payload did not result in an API call .
def add_success_attempt(self, response):
        """
        ``response`` can be a Requests response instance, or True if the
        payload did not result in an API call.
        """
        self.repeater.reset_next_attempt()
        self.sqlrepeatrecordattempt_set.create(
            state=RECORD_SUCCESS_STATE,
            message=format_response(response) or '',
        )
        self.state = RECORD_SUCCESS_STATE
        self.save()
def add_success_attempt ( self , response ) : self . repeater . reset_next_attempt ( ) self . sqlrepeatrecordattempt_set . create ( state = RECORD_SUCCESS_STATE , message = format_response ( response ) or '' , ) self . state = RECORD_SUCCESS_STATE self . save ( )