Wrong reference to request object in form_valid()