Commit b0460a4a by Tom Christie

Merge pull request #1385 from juroe/master

Fixes typo (Implicit instead of Implict).
parents 9177c741 b182b9e2
...@@ -501,7 +501,7 @@ class BaseSerializer(WritableField): ...@@ -501,7 +501,7 @@ class BaseSerializer(WritableField):
else: else:
many = hasattr(data, '__iter__') and not isinstance(data, (Page, dict, six.text_type)) many = hasattr(data, '__iter__') and not isinstance(data, (Page, dict, six.text_type))
if many: if many:
warnings.warn('Implict list/queryset serialization is deprecated. ' warnings.warn('Implicit list/queryset serialization is deprecated. '
'Use the `many=True` flag when instantiating the serializer.', 'Use the `many=True` flag when instantiating the serializer.',
DeprecationWarning, stacklevel=3) DeprecationWarning, stacklevel=3)
...@@ -563,7 +563,7 @@ class BaseSerializer(WritableField): ...@@ -563,7 +563,7 @@ class BaseSerializer(WritableField):
else: else:
many = hasattr(obj, '__iter__') and not isinstance(obj, (Page, dict)) many = hasattr(obj, '__iter__') and not isinstance(obj, (Page, dict))
if many: if many:
warnings.warn('Implict list/queryset serialization is deprecated. ' warnings.warn('Implicit list/queryset serialization is deprecated. '
'Use the `many=True` flag when instantiating the serializer.', 'Use the `many=True` flag when instantiating the serializer.',
DeprecationWarning, stacklevel=2) DeprecationWarning, stacklevel=2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment