Can I deduct mortgage interest only for the months I actually paid before divorce and have husband deduct only for the months he paid? I live in community property state.

We paid the mortgage 50/50 for 4 months. Then wife paid 5 more months and husband paid 3 more months. I assume we can only deduct for months we each actually paid on the mortgage. Right? That would give wife 7 months of deductions and husband 5 months.