I recommend my patients avoid contact sports for 6 weeks after surgery. Then if they were going to do martial arts, I would recommend a headband to protect the ears for another 2 months.
If you have your ears pinned with the Dr Merck Stitch Method, it is possible to resume training in all martial arts immediately after the operation with the exception of professional wrestling.