Add 1.15.0 changelog

This commit is contained in:
Cristi Vijdea
2019-04-01 03:26:05 +03:00
parent f692fe7c98
commit 887b53300a
3 changed files with 7 additions and 11 deletions
-1
View File
@@ -378,7 +378,6 @@ class ViewInspector(BaseInspector):
"""
raise NotImplementedError("ViewInspector must implement get_operation()!")
# methods below provided as default implementations for probing inspectors
def is_list_view(self):
"""Determine whether this view is a list or a detail view. The difference between the two is that
detail views depend on a pk/id path parameter. Note that a non-detail view does not necessarily imply a list
+1 -2
View File
@@ -227,7 +227,6 @@ def is_list_view(path, method, view):
# a detail action is surely not a list route
return False
# for GenericAPIView, if it's a list view then it should be a list view
if isinstance(view, ListModelMixin):
return True
@@ -446,7 +445,7 @@ def field_value_to_representation(field, value):
"""Convert a python value related to a field (default, choices, etc.) into its OpenAPI-compatible representation.
:param serializers.Field field: field associated with the value
:param obj value: value
:param object value: value
:return: the converted value
"""
value = field.to_representation(value)