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
62ec3680
Commit
62ec3680
authored
Oct 30, 2012
by
Tom Christie
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #337 from markotibold/typos
Fix some typos.
parents
b6c90c0d
4d90bb4a
Show 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 @
62ec3680
...
@@ -43,7 +43,7 @@ class Field(object):
...
@@ -43,7 +43,7 @@ class Field(object):
Called to set up a field prior to field_to_native or field_from_native.
Called to set up a field prior to field_to_native or field_from_native.
parent - The parent serializer.
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
.
parent
=
parent
self
.
root
=
parent
.
root
or
parent
self
.
root
=
parent
.
root
or
parent
...
@@ -197,7 +197,7 @@ class WritableField(Field):
...
@@ -197,7 +197,7 @@ class WritableField(Field):
class
ModelField
(
WritableField
):
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
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
try
:
try
:
...
...
rest_framework/generics.py
View file @
62ec3680
"""
"""
Generic views that provide comm
m
only needed behaviour.
Generic views that provide commonly needed behaviour.
"""
"""
from
rest_framework
import
views
,
mixins
from
rest_framework
import
views
,
mixins
...
...
rest_framework/serializers.py
View file @
62ec3680
...
@@ -279,7 +279,7 @@ class BaseSerializer(Field):
...
@@ -279,7 +279,7 @@ class BaseSerializer(Field):
def
errors
(
self
):
def
errors
(
self
):
"""
"""
Run deserialization and return error data,
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
:
if
self
.
_errors
is
None
:
obj
=
self
.
from_native
(
self
.
init_data
)
obj
=
self
.
from_native
(
self
.
init_data
)
...
...
rest_framework/throttling.py
View file @
62ec3680
...
@@ -16,7 +16,7 @@ class BaseThrottle(object):
...
@@ -16,7 +16,7 @@ class BaseThrottle(object):
def
wait
(
self
):
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.
the next request.
"""
"""
return
None
return
None
...
...
rest_framework/views.py
View file @
62ec3680
...
@@ -218,7 +218,7 @@ class APIView(View):
...
@@ -218,7 +218,7 @@ class APIView(View):
def
get_throttles
(
self
):
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
]
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