diff options
| author | Tom Christie | 2014-10-03 09:24:26 +0100 | 
|---|---|---|
| committer | Tom Christie | 2014-10-03 09:24:26 +0100 | 
| commit | dd47d8aa459e5ab12ce7ddf2a6f52fdbd82cec18 (patch) | |
| tree | c5feac5b9d6eb3d4748b33ba74996f4fede5766b /rest_framework/fields.py | |
| parent | fec7c4b45812d22423e73ec3ab801857a55d7340 (diff) | |
| parent | 857a8486b1534f89bd482de86d39ff717b6618eb (diff) | |
| download | django-rest-framework-dd47d8aa459e5ab12ce7ddf2a6f52fdbd82cec18.tar.bz2 | |
Merge pull request #1921 from koordinates/fix-typos
Minor: fix spelling and grammar, mostly in 3.0 announcement
Diffstat (limited to 'rest_framework/fields.py')
| -rw-r--r-- | rest_framework/fields.py | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/rest_framework/fields.py b/rest_framework/fields.py index 3f22660c..0963d4bf 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -186,14 +186,14 @@ class Field(object):      def get_initial(self):          """ -        Return a value to use when the field is being returned as a primative +        Return a value to use when the field is being returned as a primitive          value, without any object instance.          """          return self.initial      def get_value(self, dictionary):          """ -        Given the *incoming* primative data, return the value for this field +        Given the *incoming* primitive data, return the value for this field          that should be validated and transformed to a native value.          """          if html.is_html_input(dictionary): @@ -205,7 +205,7 @@ class Field(object):      def get_field_representation(self, instance):          """ -        Given the outgoing object instance, return the primative value +        Given the outgoing object instance, return the primitive value          that should be used for this field.          """          attribute = get_attribute(instance, self.source_attrs) @@ -274,13 +274,13 @@ class Field(object):      def to_internal_value(self, data):          """ -        Transform the *incoming* primative data into a native value. +        Transform the *incoming* primitive data into a native value.          """          raise NotImplementedError('to_internal_value() must be implemented.')      def to_representation(self, value):          """ -        Transform the *outgoing* native value into primative data. +        Transform the *outgoing* native value into primitive data.          """          raise NotImplementedError('to_representation() must be implemented.') @@ -927,7 +927,7 @@ class ImageField(FileField):      def to_internal_value(self, data):          # Image validation is a bit grungy, so we'll just outright          # defer to Django's implementation so we don't need to -        # consider it, or treat PIL as a test dependancy. +        # consider it, or treat PIL as a test dependency.          file_object = super(ImageField, self).to_internal_value(data)          django_field = self._DjangoImageField()          django_field.error_messages = self.error_messages | 
