'How to make existing columns empty in Django
I want to make existing columns empty and in the future the column can not be filled.
application = models.CharField(default="noname", max_length=100, null=False)
Make existing columns empty and in the future the column can not be filled with any values.
Solution 1:[1]
application = models.CharField(default="noname", max_length=100, blank=True, null=True, editable=False)
The editable attribute will make it disappear the form and django-admin and the field cannot be updated.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Mess |
