aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/throttling.py
AgeCommit message (Collapse)Author
2015-02-05Update throttling.pyKaptian
Use pk pseudo attribute for identifying the user (in case the user model is not the default and has a different column name for the unique id)
2015-01-12Fix error when NUM_PROXIES is greater than oneJosé Padilla
2015-01-11Fix ident format when using HTTP_X_FORWARDED_FORJosé Padilla
If NUM_PROXIES setting is set to None, HTTP_X_FORWARDED_FOR might be used as is, which might contain spaces and cause errors on cache backends like memcached.
2014-08-20Fix cache_throttle typoTom Christie
2014-06-23Merge remote-tracking branch 'origin/master' into 2.4.0Xavier Ordoquy
Conflicts: .travis.yml docs/api-guide/viewsets.md rest_framework/serializers.py rest_framework/throttling.py tests/test_generics.py tests/test_serializers.py tox.ini
2014-04-30Merge pull request #1409 from tuky/patch-1Xavier Ordoquy
remove spaces from META['HTTP_X_FORWARDED_FOR'] as throttle key
2014-04-13Merge remote-tracking branch 'origin/master' into 2.4.0Xavier Ordoquy
Conflicts: .travis.yml docs/api-guide/fields.md docs/api-guide/routers.md docs/topics/release-notes.md rest_framework/authentication.py rest_framework/serializers.py rest_framework/templatetags/rest_framework.py rest_framework/tests/test_authentication.py rest_framework/tests/test_filters.py rest_framework/tests/test_hyperlinkedserializers.py rest_framework/tests/test_serializer.py rest_framework/tests/test_testing.py rest_framework/utils/encoders.py tox.ini
2014-02-27handle negative time value and prevent a divide by zeroVal Neekman
2014-02-14Update throttling.pytuky
python 3 u'' gone
2014-02-12remove spaces from META['HTTP_X_FORWARDED_FOR'] as throttle keytuky
memcached cannot handle spaces in keys
2013-12-13Allow NUM_PROXIES=0 and include more docsTom Christie
2013-12-06Add get_ident method to pass new tests.kahnjw
2013-08-28Throttles now use HTTP_X_FORWARDED_FOR, falling back to REMOTE_ADDR to ↵Tom Christie
identify anonymous requests
2013-08-28Added `.cache` attribute on throttles.Tom Christie
Closes #1066. More localised than a new settings key, and more flexible in that different throttles can use different behavior. Thanks to @chicheng for the report! :)
2013-08-15AnonRateThrottle should always allow authenticated users. Closes #994Tom Christie
2013-06-14Clean upTom Christie
2013-06-14Fix and tests for ScopedRateThrottle. Closes #935Tom Christie
2013-06-05Remove ConfigurationError in favor of Django's ImproperlyConfiguredTom Christie
2013-04-25Cleanup docstringsTom Christie
2013-02-04Cleanup importsTom Christie
Mostly adding `from __future__ import unicode_literals` everywhere.
2012-10-30Fix some typos.Marko Tibold
2012-10-21Fixing spelling errors.Marko Tibold
2012-10-17Typo in class nameeofs
2012-10-10Permissions and throttles no longer have a view attribute on self. ↵Tom Christie
Explicitly passed to .has_permissions(request, view, obj=None) / .allow_request(request, view)
2012-09-26Fix @api_view decorator testsTom Christie
2012-09-20Clean up bits of templates etcTom Christie
2012-09-20Change package name: djangorestframework -> rest_frameworkTom Christie