Skip to content

Commit

Permalink
ListField weirdness 🤪
Browse files Browse the repository at this point in the history
  • Loading branch information
Sibyx committed May 31, 2022
1 parent e9a4352 commit bd7aac0
Show file tree
Hide file tree
Showing 5 changed files with 187 additions and 183 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.0-rc.2 : 31.05.2022

- **Fixed**: Fixed "weird" behaviour with missing `clean_data` values if using `ListField`

## 1.0.0-rc.1 : 28.04.2022

This release has been inspired by [Problem Details for HTTP APIs - RFC7807](https://tools.ietf.org/html/rfc7807) and
Expand Down
3 changes: 1 addition & 2 deletions django_api_forms/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ def to_python(self, value) -> typing.List:

for position, item in enumerate(value):
try:
self._field.clean(item)
result.append(self._field.to_python(item))
result.append(self._field.clean(item))
except ValidationError as e:
errors.append(DetailValidationError(e, (position,)))

Expand Down
2 changes: 1 addition & 1 deletion django_api_forms/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.0-rc.1'
__version__ = '1.0.0-rc.2'
Loading

0 comments on commit bd7aac0

Please sign in to comment.