Added throttling policy for unauthenticated users (#1531)

* added throttling policy for unauthenticated users

* updated changelog

Co-authored-by: Nikita Manovich <40690625+nmanovic@users.noreply.github.com>
main
Andrey Zhavoronkov 6 years ago committed by GitHub
parent 35badcca55
commit 4477e1777a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.1.0-alpha] - Unreleased
### Added
-
- Throttling policy for unauthenticated users (<https://github.com/opencv/cvat/pull/1531>)
### Changed
-

@ -148,6 +148,12 @@ REST_FRAMEWORK = {
# Disable default handling of the 'format' query parameter by REST framework
'URL_FORMAT_OVERRIDE': 'scheme',
'DEFAULT_THROTTLE_CLASSES': [
'rest_framework.throttling.AnonRateThrottle',
],
'DEFAULT_THROTTLE_RATES': {
'anon': '100/hour',
},
}
REST_AUTH_REGISTER_SERIALIZERS = {

Loading…
Cancel
Save