I have a modelform which has a user_id field that I have excluded from the form. This form is made into a modelformset. The reason I have the user field excluded is because it's not an editable value. I don't want that value to go to the HTML form where it can be tampered with by naughty user.
When I try to save this model formset, I get an error saying user_id can't be null. I need someway to add request.user to each form before I save that formset in the view. How can I do this? I know how to add the value to a single instance of a modelform, but I can't figure out how to do it with a formset.