diff options
| author | Gilberto Gonçalves <lursty@gmail.com> | 2013-06-22 14:05:12 +0100 |
|---|---|---|
| committer | Gilberto Gonçalves <lursty@gmail.com> | 2013-06-22 14:05:12 +0100 |
| commit | 680b512fc1509ca05cf56fada30f6b833735362a (patch) | |
| tree | 92edbcb8421fbfbdedc699c9a713ba79892274d1 /django | |
| parent | ef37b23050637da643b47b1ee744702d4d603f4c (diff) | |
Fixed #20587 -- Made convert_values handle None values
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/backends/sqlite3/base.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index a2d925ac3f..18c4029649 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -250,6 +250,9 @@ class DatabaseOperations(BaseDatabaseOperations): and gets dates and datetimes wrong. For consistency with other backends, coerce when required. """ + if value is None: + return None + internal_type = field.get_internal_type() if internal_type == 'DecimalField': return util.typecast_decimal(field.format_number(value)) |
