All you are describing in your last comment is in ``SocorroMiddleware.urlencode_params()`` which is called by every model before calling the middleware.