Cannot save model due to bad transaction? Django

Posted by Kenneth Love on Stack Overflow See other posts from Stack Overflow or by Kenneth Love
Published on 2010-04-15T23:21:11Z Indexed on 2010/04/15 23:23 UTC
Read the original article Hit count: 242

Filed under:
|
|
|

Trying to save a model in Django admin and I keep getting the error:

Transaction managed block ended with pending COMMIT/ROLLBACK

I tried restarting both the Django (1.2) and PostgreSQL (8.4) processes but nothing changed. I added "autocommit": True to my database settings but that didn't change anything either. Everything that Google has turned up has either not been answered or the answer involved not having records in the users table, which I definitely have.

The model does not have a custom save method and there are no pre/post save signals tied to it.

Any ideas or anything else I can provide to make answering this easier?

© Stack Overflow or respective owner

Related posts about django

Related posts about orm