馃敤 Remove the feature of partially commiting the messages
It contained a direct commit that can cause havok on tests, for example running the modules tests on the same base failed. Without the commit, that resolve the pylint message about it.
If the feature is needed it will be necessary to code it again, probably by using savepoint for each model.
Add a sort on id for priority as there is nothing that makes the sorting consistent on two event type with the same priority. The alternative would have been to make the priority unique.