Fix some typos.

This commit is contained in:
Marko Tibold 2012-10-30 00:30:52 +01:00
parent b6c90c0d68
commit 4d90bb4af4
5 changed files with 6 additions and 6 deletions

View File

@ -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 corrosponds to, if one exists.
model_field - The model field this field corresponds 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 arbirtrary model field.
A generic field that can be used against an arbitrary model field.
"""
def __init__(self, *args, **kwargs):
try:

View File

@ -1,5 +1,5 @@
"""
Generic views that provide commmonly needed behaviour.
Generic views that provide commonly needed behaviour.
"""
from rest_framework import views, mixins

View File

@ -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 occurred.
"""
if self._errors is None:
obj = self.from_native(self.init_data)

View File

@ -16,7 +16,7 @@ class BaseThrottle(object):
def wait(self):
"""
Optionally, return a recommeded number of seconds to wait before
Optionally, return a recommended number of seconds to wait before
the next request.
"""
return None

View File

@ -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 throttles that this view uses.
"""
return [throttle() for throttle in self.throttle_classes]