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
4d90bb4a
Commit
4d90bb4a
authored
Oct 30, 2012
by
Marko Tibold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some typos.
parent
b6c90c0d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
rest_framework/fields.py
+2
-2
rest_framework/generics.py
+1
-1
rest_framework/serializers.py
+1
-1
rest_framework/throttling.py
+1
-1
rest_framework/views.py
+1
-1
No files found.
rest_framework/fields.py
View file @
4d90bb4a
...
...
@@ -43,7 +43,7 @@ class Field(object):
Called to set up a field prior to field_to_native or field_from_native.
parent - The parent serializer.
model_field - The model field this field corr
o
sponds to, if one exists.
model_field - The model field this field corr
e
sponds to, if one exists.
"""
self
.
parent
=
parent
self
.
root
=
parent
.
root
or
parent
...
...
@@ -197,7 +197,7 @@ class WritableField(Field):
class
ModelField
(
WritableField
):
"""
A generic field that can be used against an arbi
r
trary model field.
A generic field that can be used against an arbitrary model field.
"""
def
__init__
(
self
,
*
args
,
**
kwargs
):
try
:
...
...
rest_framework/generics.py
View file @
4d90bb4a
"""
Generic views that provide comm
m
only needed behaviour.
Generic views that provide commonly needed behaviour.
"""
from
rest_framework
import
views
,
mixins
...
...
rest_framework/serializers.py
View file @
4d90bb4a
...
...
@@ -279,7 +279,7 @@ class BaseSerializer(Field):
def
errors
(
self
):
"""
Run deserialization and return error data,
setting self.object if no errors occured.
setting self.object if no errors occur
r
ed.
"""
if
self
.
_errors
is
None
:
obj
=
self
.
from_native
(
self
.
init_data
)
...
...
rest_framework/throttling.py
View file @
4d90bb4a
...
...
@@ -16,7 +16,7 @@ class BaseThrottle(object):
def
wait
(
self
):
"""
Optionally, return a recommeded number of seconds to wait before
Optionally, return a recomme
n
ded number of seconds to wait before
the next request.
"""
return
None
...
...
rest_framework/views.py
View file @
4d90bb4a
...
...
@@ -218,7 +218,7 @@ class APIView(View):
def
get_throttles
(
self
):
"""
Instantiates and returns the list of thottles that this view uses.
Instantiates and returns the list of th
r
ottles that this view uses.
"""
return
[
throttle
()
for
throttle
in
self
.
throttle_classes
]
...
...
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