1876 | | make sure that the fields that are *not* specified can provide default |
1877 | | values, or are allowed to have a value of ``None``. If a field isn't |
1878 | | specified on a form, the object created from the form can't provide |
1879 | | a value for that attribute, which will prevent the new instance from |
1880 | | being saved. |
| 1876 | the fields that are *not* specified will not be set by the form's ``save()`` |
| 1877 | method. If any of those fields requires an explicit value ``save()`` will fail. |
| 1878 | In that case you should call ``form.save(commit=False)`` which will return |
| 1879 | an instance with only the fields from the form:: |
| 1880 | |
| 1881 | instance = form.save(commit.False) |
| 1882 | instance.required_field = 'my_value' |
| 1883 | instance.save() |