<s> from . debouncer import debouncer <EOL> class DebounceMiddleware ( object ) : <EOL> def process_request ( self , request ) : <EOL> debouncer . middleware_enabled = True <EOL> def process_response ( self , request , response ) : <EOL> debouncer . apply_debounces ( ) <EOL> return response </s>
