I\'m trying to save a object to my database, but it\'s throwing a MultiValueDictKeyError error.
MultiValueDictKeyError
The problems lies within the form, the is_private<
is_private<
You get that because you're trying to get a key from a dictionary when it's not there. You need to test if it is in there first.
try:
is_private = 'is_private' in request.POST
or
is_private = 'is_private' in request.POST and request.POST['is_private']
depending on the values you're using.