Skip to content

Commit

Permalink
Add 1.15.0 changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
axnsan12 committed Apr 1, 2019
1 parent f692fe7 commit 887b533
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
14 changes: 6 additions & 8 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ Changelog
**1.15.0**
**********

*Release date: Mar 04, 2019*
*Release date: Apr 01, 2019*

- **IMPROVED:** updated ``swagger-ui`` to version 3.21.0
- **FIXED:** implicit ``ref_name`` collisions will now throw an exception
- **FIXED:** ``RecursiveField`` will now also work as a child of ``ListSerializer`` (:pr:`321`)
- **FIXED:** fixed ``minLength`` and ``maxLength`` for ``ListSerializer`` and ``ListField``
- **FIXED:** the ``items`` property of ``Schema``, ``Parameter`` and ``Items`` objects was renamed to ``items_``; this
is a *mildly breaking change* and was needed to fix the collision with the ``items`` method of ``dict`` (:pr:`308`)
- **REMOVED:** the ``get_summary`` and ``get_description`` methods have been removed (previously deprecated in 1.12.0)
- **ADDED:** added ``is_list_view`` and ``has_list_response`` extension points to ``SwaggerAutoSchema`` (:issue:`331`)
- **IMPROVED:** updated ``swagger-ui`` to version 3.22.0
- **IMPROVED:** updated ``ReDoc`` to version 2.0.0-rc.4
- **FIXED:** ``ListModelMixin`` will now always be treated as a list view (:issue:`306`)
- **FIXED:** non-primtive values in field ``choices`` will now be handled properly (:issue:`340`)

**********
**1.14.0**
Expand Down
1 change: 0 additions & 1 deletion src/drf_yasg/inspectors/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@ def get_operation(self, operation_keys):
"""
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
Expand Down
3 changes: 1 addition & 2 deletions src/drf_yasg/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 887b533

Please sign in to comment.