0👍
This question is answered here Not NULL and here Models NULL
In summary , add these fields to your model
You must create a migration, where you will specify default value for a new field, since you don’t want it to be null. If null is not required, simply add null=True
and create and run migration.
- [Answer]-Using rest django rest framework for creating new object
- [Answer]-Matrix of Foreign Keys and free textfields in Django
- [Answer]-GeoDjango distance query ForeignKey
- [Answer]-Make a div-row collapse in html/css/django
Source:stackexchange.com