Changes between Initial Version and Version 2 of Ticket #22224
- Timestamp:
- Mar 7, 2014, 2:00:53 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22224
- Property Component Uncategorized → Database layer (models, ORM)
- Property Has patch set
-
Ticket #22224 – Description
initial v2 18 18 This is not an issue when cleaning data retrieved from the usual `application/form-url-encoded` `request.GET` or `request.POST` since an empty value is always represented by the empty string. However, in the case of an `application/json` encoded payload one may either provide `None` or `''` (`null` or `''`) to express emptiness. Which will trigger the issue described above. 19 19 20 Attaching a patch that special case the `empty_values` of non-nullable string based fields based on the `empty_strings_allowed` flag. All tests pass on Py 7/SQLite3.20 Attaching a patch that special case the `empty_values` of non-nullable string based fields based on the `empty_strings_allowed` flag. All tests pass on Py2.7/SQLite3.