Allow custom throttle to provide a custom detail
Description
This PR adds a new feature to APIView when using a throttle class.
Now the .wait() method can return a tuple of two elements:
- duration (which could be
None): which behaves as previous return value - detail: a string to be used as detail param for
Throttledexception
This allows users to define custom throttle message when extending BaseThtottle.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
i'm not sure why the CI tests didn't trigger? can you pull from main branch please?
Now it was triggered but tests failed for something which does not seems related to this PR 🤔
yes the tests are fine for this PR. the failures are unrelated