postgresql - Django+Postgres: "current transaction is aborted, commands ignored until end of transaction block" -
i've started working on django/postgres site. work in manage.py shell
, , accidentally db action results in error. unable any database action @ all, because database action try do, error:
current transaction aborted, commands ignored until end of transaction block
my current workaround restart shell, should find way fix without abandoning shell session.
(i've read this , this, don't give actionable instructions on shell.)
you can try this:
from django.db import connection connection._rollback()
the more detailed discussion of this issue can found here
Comments
Post a Comment