Changes between Version 1 and Version 2 of Ticket #27955
- Timestamp:
- Mar 17, 2017, 7:04:28 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27955
- Property Resolution → invalid
- Property Status new → closed
-
Ticket #27955 – Description
v1 v2 9 9 }}} 10 10 11 Creating an object programmatically works and applies the default value just fine. Saving an object with an empty value for the `JSONField` triggers an IntegrityErrorbecause Django tries to save an object with `null` instead of the default.11 Creating an object programmatically works and applies the default value just fine. Saving an object with an empty value for the `JSONField` triggers an `IntegrityError` because Django tries to save an object with `null` instead of the default. 12 12 13 I'm not sure whether this ticket is a duplicate of https://code.djangoproject.com/ticket/27697 but I think this issue with the ignored default may have a different origin.13 I'm not sure whether this ticket is a duplicate of #27697 but I think this issue with the ignored default may have a different origin.