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<
Use the MultiValueDict's get method. This is also present on standard dicts and is a way to fetch a value while providing a default if it does not exist.
get
is_private = request.POST.get('is_private', False)
Generally,
my_var = dict.get(, )