Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
78e85e02
Commit
78e85e02
authored
Oct 17, 2012
by
Tom Christie
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #298 from eofs/restframework2
Typo in class name fixed
parents
ae680b13
520a183c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
rest_framework/throttling.py
+4
-4
No files found.
rest_framework/throttling.py
View file @
78e85e02
...
...
@@ -22,7 +22,7 @@ class BaseThrottle(object):
return
None
class
SimpleRateThottle
(
BaseThrottle
):
class
SimpleRateTh
r
ottle
(
BaseThrottle
):
"""
A simple cache implementation, that only requires `.get_cache_key()`
to be overridden.
...
...
@@ -133,7 +133,7 @@ class SimpleRateThottle(BaseThrottle):
return
remaining_duration
/
float
(
available_requests
)
class
AnonRateThrottle
(
SimpleRateThottle
):
class
AnonRateThrottle
(
SimpleRateTh
r
ottle
):
"""
Limits the rate of API calls that may be made by a anonymous users.
...
...
@@ -153,7 +153,7 @@ class AnonRateThrottle(SimpleRateThottle):
}
class
UserRateThrottle
(
SimpleRateThottle
):
class
UserRateThrottle
(
SimpleRateTh
r
ottle
):
"""
Limits the rate of API calls that may be made by a given user.
...
...
@@ -175,7 +175,7 @@ class UserRateThrottle(SimpleRateThottle):
}
class
ScopedRateThrottle
(
SimpleRateThottle
):
class
ScopedRateThrottle
(
SimpleRateTh
r
ottle
):
"""
Limits the rate of API calls by different amounts for various parts of
the API. Any view that has the `throttle_scope` property set will be
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment