Django: How to set a field to NULL?
DjangoDjango ModelsDjango Problem Overview
I have a field allow NULL value, but how can I set it back to NULL? not blank
Django Solutions
Solution 1 - Django
Assign None
.
I have a field allow NULL value, but how can I set it back to NULL? not blank
Assign None
.
Previous Solution:
All content for this solution is sourced from the original question on Stackoverflow.
The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.
Content Type | Original Author | Original Content on Stackoverflow |
---|---|---|
Question | user469652 | View Question on Stackoverflow |
Solution 1 - Django | Ignacio Vazquez-Abrams | View Answer on Stackoverflow |