Changes between Initial Version and Version 2 of Ticket #22224


Ignore:
Timestamp:
03/07/2014 02:00:53 AM (12 months ago)
Author:
charettes
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22224

    • Property Has patch set
    • Property Component changed from Uncategorized to Database layer (models, ORM)
  • 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