[Answered ]-Django/postgres: Transaction managed block ended with pending COMMIT/ROLLBACK



I updated an issue with sqldiff causing similar problems. Your best bet is probably to obtain django-extensions from the github repository and do a bit of investigation. Edit sqldiff.py and comment out the transaction code decorating the find_differences method:

#    @transaction.commit_manually
def find_differences(self):
#                transaction.rollback()  # reset transaction
#                transaction.commit()

Now your real problem should be revealed, no longer masked by the transaction exception.

๐Ÿ‘คJeff Bauer

Leave a comment