Changes between Initial Version and Version 2 of Ticket #22224


Ignore:
Timestamp:
Mar 7, 2014, 2:00:53 AM (11 years ago)
Author:
Simon Charette
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22224

    • Property Component UncategorizedDatabase layer (models, ORM)
    • Property Has patch set
  • Ticket #22224 – Description

    initial v2  
    1818This 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.
    1919
    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 Py7/SQLite3.
     20Attaching 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.
Back to Top