I had hernia surgery several years ago and recently had a second surgery to clean out scar tissue. There are several things to keep in mind.
First, doctors are not strength coaches. When you tell them that you "lift weights" they automatically take it to mean that you train like you're about to audition for the cast of Jersey Shore. It's true that you may be able to "lift" again after 2 weeks if your definition of lifting is cable crossovers and concentration curls. (which is totally fine if that's your thing)
But if you train like an athlete, with heavy and/ or explosive compound movements you need to take it really slow. In the immediate weeks after surgery I would recommend doing only exercises where your torso/ back is supported. Keep lower body work to things like bodyweight lunges and squats and don't even think about deadlifting. When you get back into it, grease the groove by progressing very slowly. You'll be back to your old numbers in no time.
Having the operations actually helped me in a way because I used the months following to reprogram my body and focus on proper form. I recommend that you use this time to do the same.