You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, does this package supports class based views? I've tried to use it along with ExemptIdempotencyKeyMiddleware but the idempotency_key decorator doesn't work, it allows creating multiple instances, I added a custom middleware to inspect the request and the header with the key exists, could anyone provide an example about how should it be used with drf?
I'm also having this issue. The problem seems to stem from the @idempotency_key decorator adding properties to the http method (ie. MyView.post) while the middleware callback parameter in IdempotencyKeyMiddleware.process_view seems to target the view class as a function, ie. <function MyView at 0x135077280> which does not have access to the required properties.
Hello, does this package supports class based views? I've tried to use it along with
ExemptIdempotencyKeyMiddleware
but the idempotency_key decorator doesn't work, it allows creating multiple instances, I added a custom middleware to inspect the request and the header with the key exists, could anyone provide an example about how should it be used with drf?The text was updated successfully, but these errors were encountered: