Okay, I updated my form_invalid to the following…
def form_invalid(self, form):
print('==> ERRORS: ' + str(form.errors))
messages.error(self.request, mark_safe('CSN NOT DELETED.<br/>'
'Error: ' + str(form.errors)))
return super(CSNDelete, self).form_invalid(form)
The result looks like this:
CSN NOT DELETED.
Error:
- service_date
- This field is required.
- goals
- This field is required.
So, I’m still not sure why my DeleteView is trying to check for required fields.