Hello Indi,
You're asking for an action yet finished. Some guys went to a place, and there, they had fun.
Then, the answer, the only possible is : Se divirtieron.
In English te verb "divertirse" is "to have fun".
In English, when you want to express "se divertían" you have a very precise form : they used to have fun.