# NOT NULL constraint failed

**URL:** <https://forum.djangoproject.com/t/not-null-constraint-failed/9460>\
**Category:** Forms & APIs\
**Created:** [August 29, 2021, 7:44pm UTC](https://forum.djangoproject.com/t/not-null-constraint-failed/9460 "2021-08-29T19:44:51Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [August 29, 2021, 8:30pm UTC](https://forum.djangoproject.com/t/not-null-constraint-failed/9460/4 "2021-08-29T20:30:46Z")

</div>

You’ll want to set a value on that field.

(In any view, how do you know who the user is making a request?)

Also see the docs on [the save() method](https://docs.djangoproject.com/en/3.2/topics/forms/modelforms/#the-save-method), particularly the text after the first example block and the second example.

---

_[View the full topic](https://forum.djangoproject.com/t/not-null-constraint-failed/9460)._
