mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Fix typos in Python files
This commit is contained in:
parent
b352c8a24c
commit
773b68e188
|
@ -1614,7 +1614,7 @@ class JSONField(Field):
|
|||
def get_value(self, dictionary):
|
||||
if html.is_html_input(dictionary) and self.field_name in dictionary:
|
||||
# When HTML form input is used, mark up the input
|
||||
# as being a JSON string, rather than a JSON primative.
|
||||
# as being a JSON string, rather than a JSON primitive.
|
||||
class JSONString(six.text_type):
|
||||
def __new__(self, value):
|
||||
ret = six.text_type.__new__(self, value)
|
||||
|
|
|
@ -1177,7 +1177,7 @@ class ModelSerializer(Serializer):
|
|||
|
||||
if postgres_fields and isinstance(model_field, postgres_fields.ArrayField):
|
||||
# Populate the `child` argument on `ListField` instances generated
|
||||
# for the PostgrSQL specfic `ArrayField`.
|
||||
# for the PostgreSQL specific `ArrayField`.
|
||||
child_model_field = model_field.base_field
|
||||
child_field_class, child_field_kwargs = self.build_standard_field(
|
||||
'child', child_model_field
|
||||
|
|
Loading…
Reference in New Issue
Block a user