Sex after birth

How long did you wait to have sex after giving birth and having a 2nd degree tear?