Add 1.15.0 changelog
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user