I’m trying to save a object to my database, but it’s throwing a MultiValueDictKeyError
error.
The problems lies within the form, the is_private
is represented by a checkbox. If the check box is NOT selected, obviously nothing is passed. This is where the error gets chucked.
How do I properly deal with this exception, and catch it?
The line is
is_private = request.POST['is_private']