Is it necessary to have second models.db.session.commit() here?

Just once commit() is ok

Yes, I know, it was the rhetorical question. Maybe guys will want to update this 4 years old part of code :slight_smile:

ok, i hadn’t notice it.